From 7172ca263a52785cf54dd07a0e1aaabebb8a9358 Mon Sep 17 00:00:00 2001 From: joelholdsworth Date: Sat, 24 May 2008 15:49:04 +0000 Subject: [PATCH] Fixed the open dialog so that it remembers which folder you were browsing in --- src/file.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/file.cpp b/src/file.cpp index fb03c25e7..111e6028a 100644 --- a/src/file.cpp +++ b/src/file.cpp @@ -493,7 +493,7 @@ sp_file_open_dialog(Gtk::Window &parentWindow, gpointer /*object*/, gpointer /*d else g_warning( "ERROR CONVERTING OPEN FILENAME TO UTF-8" ); - open_path = fileName; + open_path = Glib::path_get_dirname (fileName); open_path.append(G_DIR_SEPARATOR_S); prefs_set_string_attribute("dialogs.open", "path", open_path.c_str()); -- 2.30.2