diff --git a/src/actions/actions-file.cpp b/src/actions/actions-file.cpp index 69d02cbc39f0fe6b058745940fac295c09912dc1..352603d69202bfc5cf0dd752d3ef537968766384 100644 --- a/src/actions/actions-file.cpp +++ b/src/actions/actions-file.cpp @@ -16,6 +16,8 @@ #include #include "actions-helper.h" +#include "desktop.h" +#include "ui/widget/desktop-widget.h" #include "document.h" #include "document-undo.h" #include "inkscape.h" // Inkscape::Application @@ -31,6 +33,9 @@ file_open(const Glib::VariantBase& value, InkscapeApplication *app) Glib::RefPtr file = Gio::File::create_for_path(s.get()); if (!file->query_exists()) { + SPDesktop* _desktop = SP_ACTIVE_DESKTOP; + SPDesktopWidget* _widget = _desktop->getDesktopWidget(); + _widget->showNotice((_("File %s does not exist."), s.get().raw()), 5000); show_output(Glib::ustring("file_open: file '") + s.get().raw() + "' does not exist."); return; }