summaryrefslogtreecommitdiffstats
path: root/src/inkscape.cpp
diff options
context:
space:
mode:
authorJon A. Cruz <jon@joncruz.org>2009-05-04 05:20:54 +0000
committerjoncruz <joncruz@users.sourceforge.net>2009-05-04 05:20:54 +0000
commit2dcad8b8dd3e13db62e7de20293c5369dc5e9445 (patch)
tree863fd4014431356803427bca8f813d51c234c1fb /src/inkscape.cpp
parentFixed broken preferences singleton and removed GUI encapsulation leakage. Fix... (diff)
downloadinkscape-2dcad8b8dd3e13db62e7de20293c5369dc5e9445.tar.gz
inkscape-2dcad8b8dd3e13db62e7de20293c5369dc5e9445.zip
Implement warning of prior errors.
(bzr r7817)
Diffstat (limited to 'src/inkscape.cpp')
-rw-r--r--src/inkscape.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/inkscape.cpp b/src/inkscape.cpp
index 5d9e217a8..abfffefc2 100644
--- a/src/inkscape.cpp
+++ b/src/inkscape.cpp
@@ -787,6 +787,13 @@ inkscape_application_init (const gchar *argv0, gboolean use_gui)
Inkscape::Preferences *prefs = Inkscape::Preferences::get();
InkErrorHandler* handler = new InkErrorHandler(use_gui);
prefs->setErrorHandler(handler);
+ {
+ Glib::ustring msg;
+ Glib::ustring secondary;
+ if (prefs->getLastError( msg, secondary )) {
+ handler->handleError(msg, secondary);
+ }
+ }
inkscape_load_menus(inkscape);
sp_input_load_from_preferences();