Catch a more general form of exception, as we don't make use of the more specific. Had issues with Runtime type information on OSX, not sure exactly what the
problem is but this generalization of exception handling seem to make it work safely.
This commit is contained in:
@@ -248,12 +248,12 @@ void FlatField::setShortcutPath(Glib::ustring path)
|
||||
try {
|
||||
flatFieldFile->remove_shortcut_folder(lastShortcutPath);
|
||||
}
|
||||
catch (Gtk::FileChooserError &err) {}
|
||||
catch (Glib::Error &err) {}
|
||||
}
|
||||
lastShortcutPath = path;
|
||||
try {
|
||||
flatFieldFile->add_shortcut_folder(path);
|
||||
}
|
||||
catch (Gtk::FileChooserError &err) {}
|
||||
catch (Glib::Error &err) {}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user