summaryrefslogtreecommitdiffstats
path: root/src/main.cpp
diff options
context:
space:
mode:
authorJabier Arraiza Cenoz <jabier.arraiza@marker.es>2014-01-02 15:16:13 +0000
committerJabiertxof <jtx@jtx.marker.es>2014-01-02 15:16:13 +0000
commitada8e6c77eba1d1cda72eb239383171981e7c801 (patch)
tree753c31c9adc0e733308317a5f204c767356ba611 /src/main.cpp
parentFixed a boring bug sometimes curves be converted to lines, increasing a bit t... (diff)
parentFix for Bug #950781 (There is no disk in drive error when opening Inkscape in... (diff)
downloadinkscape-ada8e6c77eba1d1cda72eb239383171981e7c801.tar.gz
inkscape-ada8e6c77eba1d1cda72eb239383171981e7c801.zip
update to trunk
(bzr r11950.1.231)
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 9f5a95ffe..079944af6 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -584,11 +584,14 @@ static void _win32_set_inkscape_env(gchar const *exe)
} else {
printf("python not found\n\n");
}*/
-
+
// INKSCAPE_LOCALEDIR is needed by Python/Gettext
gchar *localepath = g_build_filename(exe, PACKAGE_LOCALE_DIR, NULL);
g_setenv("INKSCAPE_LOCALEDIR", localepath, TRUE);
-
+
+ // prevent "please insert disk" messages. fixes bug #950781
+ SetErrorMode(SEM_FAILCRITICALERRORS | SEM_NOGPFAULTERRORBOX | SEM_NOOPENFILEERRORBOX);
+
g_free(python);
g_free(scripts);
g_free(perl);