From: dooglus Date: Tue, 18 Nov 2008 17:19:57 +0000 (+0000) Subject: When we try to open a file that doesn't exist, display an error in studio. X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=16993383da963eacb529bfdb7ded2a2de3173eea;p=synfig.git 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 --- 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)"));