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