From 16993383da963eacb529bfdb7ded2a2de3173eea Mon Sep 17 00:00:00 2001 From: dooglus Date: Tue, 18 Nov 2008 17:19:57 +0000 Subject: [PATCH] When we try to open a file that doesn't exist, display an error in studio. git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2209 1f10aa63-cdf2-0310-b900-c93c546f37ac --- synfig-studio/trunk/src/gtkmm/app.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/synfig-studio/trunk/src/gtkmm/app.cpp b/synfig-studio/trunk/src/gtkmm/app.cpp index 4447fc3..18cab60 100644 --- a/synfig-studio/trunk/src/gtkmm/app.cpp +++ b/synfig-studio/trunk/src/gtkmm/app.cpp @@ -2397,6 +2397,11 @@ App::open_as(std::string filename,std::string as) dialog_error_blocking(_("Error"), x); return false; } + catch(runtime_error x) + { + dialog_error_blocking(_("Error"), x.what()); + return false; + } catch(...) { dialog_error_blocking(_("Error"), _("Uncaught error on file open (BUG)")); -- 2.7.4