From: joncruz Date: Sat, 3 Mar 2007 05:53:38 +0000 (+0000) Subject: Speedup when switching types by avoiding setting to a directory we are already set to X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=71846a6785e38fcb276197579a7e7e5b34e81837;p=inkscape.git Speedup when switching types by avoiding setting to a directory we are already set to --- 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());