]> granicus.if.org Git - handbrake/commitdiff
LinGui: fix a problem with srt subtitle file dialog forgetting the last used directory
authorjstebbins <jstebbins.hb@gmail.com>
Wed, 14 Oct 2009 00:58:59 +0000 (00:58 +0000)
committerjstebbins <jstebbins.hb@gmail.com>
Wed, 14 Oct 2009 00:58:59 +0000 (00:58 +0000)
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2884 b64f7644-9d1e-0410-96f1-a4d463321fa5

gtk/src/settings.c

index 857bf70867ccbfe36e51939809d5cb49c386a1be..4bafd9b2d87ebdb36a2f328a21f816b3cb2aef85 100644 (file)
@@ -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);