summaryrefslogtreecommitdiffstats
path: root/gtk/src/settings.c
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2009-10-14 00:58:59 +0000
committerjstebbins <[email protected]>2009-10-14 00:58:59 +0000
commit55978f89508f94744eb14b36ae23f079e871bb10 (patch)
treee0d1d34fc15a408af388038654d0498be1811696 /gtk/src/settings.c
parentcea10da06e5eae95762a64e592cbd73b4180d3a4 (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
Diffstat (limited to 'gtk/src/settings.c')
-rw-r--r--gtk/src/settings.c7
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);