From 2992ed0f7ab757f6511f3643173ded72a28cd291 Mon Sep 17 00:00:00 2001 From: Martin Owens Date: Sun, 2 Jul 2017 18:07:52 +0200 Subject: Remove duplicate error message --- src/inkscape.cpp | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'src') 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 ){ -- cgit v1.2.3