[Scummvm-git-logs] scummvm master -> 2134a2dc72fc75d4775e49e2b8b077791190edc6

sev- sev at scummvm.org
Thu Oct 22 22:33:05 UTC 2020


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
2134a2dc72 BACKENDS: DIALOGS: Properly store last path in Gtk file browser


Commit: 2134a2dc72fc75d4775e49e2b8b077791190edc6
    https://github.com/scummvm/scummvm/commit/2134a2dc72fc75d4775e49e2b8b077791190edc6
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2020-10-23T00:32:21+02:00

Commit Message:
BACKENDS: DIALOGS: Properly store last path in Gtk file browser

Changed paths:
    backends/dialogs/gtk/gtk-dialogs.cpp


diff --git a/backends/dialogs/gtk/gtk-dialogs.cpp b/backends/dialogs/gtk/gtk-dialogs.cpp
index 72a18936f3..ceb1e59027 100644
--- a/backends/dialogs/gtk/gtk-dialogs.cpp
+++ b/backends/dialogs/gtk/gtk-dialogs.cpp
@@ -75,15 +75,11 @@ Common::DialogManager::DialogResult GtkDialogManager::showFileBrowser(const Comm
 		// Get the selection from the user
 		char *path = gtk_file_chooser_get_filename(chooser);
 		choice = Common::FSNode(path);
+		ConfMan.set("browser_lastpath", path);
 		result = kDialogOk;
 		g_free(path);
-
-		// Save last path
-		char *last = gtk_file_chooser_get_current_folder(chooser);
-		ConfMan.set("browser_lastpath", last);
-		g_free(last);
 	}
-	
+
 #if GTK_CHECK_VERSION(3,20,0)
 	g_object_unref(native);
 #else




More information about the Scummvm-git-logs mailing list