diff --git a/gui/mainwindow.cpp b/gui/mainwindow.cpp index 3744f520c58f..75250bc444d5 100644 --- a/gui/mainwindow.cpp +++ b/gui/mainwindow.cpp @@ -907,12 +907,10 @@ bool MainWindow::tryLoadLibrary(Library *library, const QString& filename) void MainWindow::loadAddon(Settings &settings, const QString &filesDir, const QString &pythonCmd, const QString& addon) { - QString addonFilePath = ProjectFile::getAddonFilePath(filesDir, addon); + const QString addonFilePath = fromNativePath(ProjectFile::getAddonFilePath(filesDir, addon)); if (addonFilePath.isEmpty()) return; // TODO: report an error - addonFilePath.replace(QChar('\\'), QChar('/')); - picojson::object obj; obj["script"] = picojson::value(addonFilePath.toStdString()); if (!pythonCmd.isEmpty()) diff --git a/lib/errorlogger.cpp b/lib/errorlogger.cpp index fbb635c691df..112a2592f081 100644 --- a/lib/errorlogger.cpp +++ b/lib/errorlogger.cpp @@ -42,6 +42,7 @@ const std::set ErrorLogger::mCriticalErrorIds{ "cppcheckError", "cppcheckLimit", + "fileNotFound", "internalAstError", "instantiationError", "internalError",