diff --git a/src/ui/dialog/export-batch.cpp b/src/ui/dialog/export-batch.cpp index fec5188d07cebe16b0686e8617e90a4c42fb4e61..bfa7732423c539cee2b1efaefb16d2945c19cf16 100644 --- a/src/ui/dialog/export-batch.cpp +++ b/src/ui/dialog/export-batch.cpp @@ -657,7 +657,7 @@ void BatchExport::onExport() if (!Inkscape::IO::file_test(path.c_str(), (GFileTest)(G_FILE_TEST_IS_DIR))) { auto const window = _desktop->getInkscapeWindow(); - if (!Inkscape::IO::file_test(path.c_str(), (GFileTest)(G_FILE_TEST_EXISTS))) { + if (Inkscape::IO::file_test(path.c_str(), (GFileTest)(G_FILE_TEST_EXISTS))) { auto dialog = Gtk::MessageDialog(*window, _("Can not save to a directory that is actually a file."), true, Gtk::MessageType::ERROR, Gtk::ButtonsType::OK); UI::dialog_run(dialog); return;