diff options
| author | Martin Owens <doctormo@gmail.com> | 2017-07-02 16:07:52 +0000 |
|---|---|---|
| committer | Martin Owens <doctormo@gmail.com> | 2017-07-02 16:07:52 +0000 |
| commit | 2992ed0f7ab757f6511f3643173ded72a28cd291 (patch) | |
| tree | 81af9cf2a72c3031ac496e1849cb1ac401410021 /src/inkscape.cpp | |
| parent | Merge https://gitlab.com/inkscape/inkscape into selectable-knots (diff) | |
| download | inkscape-2992ed0f7ab757f6511f3643173ded72a28cd291.tar.gz inkscape-2992ed0f7ab757f6511f3643173ded72a28cd291.zip | |
Remove duplicate error message
Diffstat (limited to 'src/inkscape.cpp')
| -rw-r--r-- | src/inkscape.cpp | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/inkscape.cpp b/src/inkscape.cpp index b0d2a7f6b..22f7230a0 100644 --- a/src/inkscape.cpp +++ b/src/inkscape.cpp @@ -230,14 +230,7 @@ int Application::autosave() GDir *autosave_dir_ptr = g_dir_open(autosave_dir.c_str(), 0, NULL); if (!autosave_dir_ptr) { // Try to create the autosave directory if it doesn't exist - if (g_mkdir(autosave_dir.c_str(), 0755)) { - // the creation failed - Glib::ustring msg = Glib::ustring::compose( - _("Autosave failed! Cannot create directory %1."), Glib::filename_to_utf8(autosave_dir)); - g_warning("%s", msg.c_str()); - SP_ACTIVE_DESKTOP->messageStack()->flash(Inkscape::ERROR_MESSAGE, msg.c_str()); - return TRUE; - } + g_mkdir(autosave_dir.c_str(), 0755); // Try to read dir again autosave_dir_ptr = g_dir_open(autosave_dir.c_str(), 0, NULL); if( !autosave_dir_ptr ){ |
