When we try to open a file that doesn't exist, display an error in studio.
authordooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Tue, 18 Nov 2008 17:19:57 +0000 (17:19 +0000)
committerdooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Tue, 18 Nov 2008 17:19:57 +0000 (17:19 +0000)
git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2209 1f10aa63-cdf2-0310-b900-c93c546f37ac

synfig-studio/trunk/src/gtkmm/app.cpp

index 4447fc3..18cab60 100644 (file)
@@ -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)"));