From: jstebbins Date: Wed, 14 Oct 2009 00:58:59 +0000 (+0000) Subject: LinGui: fix a problem with srt subtitle file dialog forgetting the last used directory X-Git-Tag: 0.9.4~78 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=55978f89508f94744eb14b36ae23f079e871bb10;p=handbrake LinGui: fix a problem with srt subtitle file dialog forgetting the last used directory git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2884 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- diff --git a/gtk/src/settings.c b/gtk/src/settings.c index 857bf7086..4bafd9b2d 100644 --- a/gtk/src/settings.c +++ b/gtk/src/settings.c @@ -631,7 +631,12 @@ update_widget(GtkWidget *widget, const GValue *value) { GtkFileChooserAction act; act = gtk_file_chooser_get_action(GTK_FILE_CHOOSER(widget)); - if (act == GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER || + if (str[0] == 0) + { + // Do nothing + ; + } + else if (act == GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER || act == GTK_FILE_CHOOSER_ACTION_CREATE_FOLDER) { gtk_file_chooser_set_current_folder(GTK_FILE_CHOOSER(widget), str);