Issue 2040: Made remove_shortcut_folder more robust by catching exceptions

This commit is contained in:
torger
2013-11-11 10:32:27 +01:00
parent f28731b534
commit 26432a8fbc

5
rtgui/flatfield.cc Normal file → Executable file
View File

@@ -239,7 +239,10 @@ void FlatField::setShortcutPath(Glib::ustring path)
#endif #endif
{ {
if (lastShortcutPath != "") { if (lastShortcutPath != "") {
flatFieldFile->remove_shortcut_folder(lastShortcutPath); try {
flatFieldFile->remove_shortcut_folder(lastShortcutPath);
}
catch (Gtk::FileChooserError &err) {}
} }
lastShortcutPath = path; lastShortcutPath = path;
try { try {