From 71846a6785e38fcb276197579a7e7e5b34e81837 Mon Sep 17 00:00:00 2001 From: joncruz Date: Sat, 3 Mar 2007 05:53:38 +0000 Subject: [PATCH] Speedup when switching types by avoiding setting to a directory we are already set to --- src/ui/dialog/filedialog.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ui/dialog/filedialog.cpp b/src/ui/dialog/filedialog.cpp index 0f74c6241..81404a2de 100644 --- a/src/ui/dialog/filedialog.cpp +++ b/src/ui/dialog/filedialog.cpp @@ -1522,7 +1522,9 @@ FileSaveDialogImpl::change_path(const Glib::ustring& path) set_filename(myFilename); } else { std::string dirName = Glib::path_get_dirname( myFilename ); - set_current_folder(dirName); + if ( dirName != get_current_folder() ) { + set_current_folder(dirName); + } } Glib::ustring basename = Glib::path_get_basename(myFilename); //fprintf(stderr,"set_current_name(%s)\n",basename.c_str()); -- 2.30.2