diff options
author | jstebbins <[email protected]> | 2009-10-14 00:58:59 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2009-10-14 00:58:59 +0000 |
commit | 55978f89508f94744eb14b36ae23f079e871bb10 (patch) | |
tree | e0d1d34fc15a408af388038654d0498be1811696 | |
parent | cea10da06e5eae95762a64e592cbd73b4180d3a4 (diff) |
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
-rw-r--r-- | gtk/src/settings.c | 7 |
1 files changed, 6 insertions, 1 deletions
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); |