summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNicolas Dufour <nicoduf@yahoo.fr>2014-01-02 08:29:29 +0000
committerJazzyNico <nicoduf@yahoo.fr>2014-01-02 08:29:29 +0000
commita13410f14b3bc2acafe48d07e4c53d16fd6be594 (patch)
tree32308baa95c2380696a0d31323fc071ab11f804f /src
parentTranslations. Ukrainian translation update by Yuri Chornoivan. (diff)
downloadinkscape-a13410f14b3bc2acafe48d07e4c53d16fd6be594.tar.gz
inkscape-a13410f14b3bc2acafe48d07e4c53d16fd6be594.zip
Fix for Bug #950781 (There is no disk in drive error when opening Inkscape in Windows 7) by Max Gaukler.
Fixed bugs: - https://launchpad.net/bugs/950781 (bzr r12866)
Diffstat (limited to 'src')
-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);