From 7f223e4b992e0fd8b86698915200ee8e3c0cf933 Mon Sep 17 00:00:00 2001 From: buliabyak Date: Sat, 24 May 2008 19:32:40 +0000 Subject: [PATCH] this hack does not seem to be needed with modern gtk, and it prevents remembering of last-browsed directory from working --- src/ui/dialog/filedialogimpl-gtkmm.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/ui/dialog/filedialogimpl-gtkmm.cpp b/src/ui/dialog/filedialogimpl-gtkmm.cpp index 749589900..b93e7837a 100644 --- a/src/ui/dialog/filedialogimpl-gtkmm.cpp +++ b/src/ui/dialog/filedialogimpl-gtkmm.cpp @@ -761,10 +761,6 @@ void FileOpenDialogImplGtk::createFilterMenu() bool FileOpenDialogImplGtk::show() { - Glib::ustring s = Glib::filename_to_utf8 (get_current_folder()); - if (s.length() == 0) - s = getcwd (NULL, 0); - set_current_folder(Glib::filename_from_utf8(s)); //hack to force initial dir listing set_modal (TRUE); //Window sp_transientize((GtkWidget *)gobj()); //Make transient gint b = run(); //Dialog -- 2.30.2