From 1a5fc8e68d424f67d07a656ec5232b3bd01b3c47 Mon Sep 17 00:00:00 2001 From: David Kocik Date: Mon, 29 May 2023 15:55:59 +0200 Subject: [PATCH] Add error dialog after saving Project fails. Issue #10688 --- src/slic3r/GUI/Plater.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/slic3r/GUI/Plater.cpp b/src/slic3r/GUI/Plater.cpp index 9057ec671..6635645dd 100644 --- a/src/slic3r/GUI/Plater.cpp +++ b/src/slic3r/GUI/Plater.cpp @@ -6638,11 +6638,14 @@ bool Plater::export_3mf(const boost::filesystem::path& output_path) if (ret) { // Success // p->statusbar()->set_status_text(format_wxstr(_L("3MF file exported to %s"), path)); + BOOST_LOG_TRIVIAL(info) << "3MF file exported to " << path; p->set_project_filename(path); } else { // Failure // p->statusbar()->set_status_text(format_wxstr(_L("Error exporting 3MF file %s"), path)); + const wxString what = GUI::format_wxstr(_L("%1%: %2%"),_L("Unable to save file") , path_u8); + show_error(this, what); } return ret; }