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

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

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