Code

this hack does not seem to be needed with modern gtk, and it prevents remembering...
authorbuliabyak <buliabyak@users.sourceforge.net>
Sat, 24 May 2008 19:32:40 +0000 (19:32 +0000)
committerbuliabyak <buliabyak@users.sourceforge.net>
Sat, 24 May 2008 19:32:40 +0000 (19:32 +0000)
src/ui/dialog/filedialogimpl-gtkmm.cpp

index 749589900a2716f5c9c183d83e1144a964b038ac..b93e7837acbee80737acae44a23811693a3a5b4f 100644 (file)
@@ -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