From 26432a8fbc48d5e80a7b7e2997bbd53845e5aeae Mon Sep 17 00:00:00 2001 From: torger Date: Mon, 11 Nov 2013 10:32:27 +0100 Subject: [PATCH] Issue 2040: Made remove_shortcut_folder more robust by catching exceptions --- rtgui/flatfield.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) mode change 100644 => 100755 rtgui/flatfield.cc diff --git a/rtgui/flatfield.cc b/rtgui/flatfield.cc old mode 100644 new mode 100755 index df7c150de..a3723c0e1 --- a/rtgui/flatfield.cc +++ b/rtgui/flatfield.cc @@ -239,7 +239,10 @@ void FlatField::setShortcutPath(Glib::ustring path) #endif { if (lastShortcutPath != "") { - flatFieldFile->remove_shortcut_folder(lastShortcutPath); + try { + flatFieldFile->remove_shortcut_folder(lastShortcutPath); + } + catch (Gtk::FileChooserError &err) {} } lastShortcutPath = path; try {