Issue 2040: Made remove_shortcut_folder more robust by catching exceptions
This commit is contained in:
3
rtgui/flatfield.cc
Normal file → Executable file
3
rtgui/flatfield.cc
Normal file → Executable 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);
|
||||
|
Reference in New Issue
Block a user