From a3bc43259ccb7b1984c2bb3d4065ed048a1ff4e9 Mon Sep 17 00:00:00 2001 From: Riccardo Schirone Date: Thu, 9 Sep 2021 20:39:56 +0200 Subject: [PATCH] Fix code after change in rz_project_save_file API --- src/core/MainWindow.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/MainWindow.cpp b/src/core/MainWindow.cpp index 78b8dc7c..6a899239 100644 --- a/src/core/MainWindow.cpp +++ b/src/core/MainWindow.cpp @@ -695,7 +695,7 @@ RzProjectErr MainWindow::saveProject(bool *canceled) if (canceled) { *canceled = false; } - RzProjectErr err = rz_project_save_file(RzCoreLocked(core), file.toUtf8().constData()); + RzProjectErr err = rz_project_save_file(RzCoreLocked(core), file.toUtf8().constData(), false); if (err == RZ_PROJECT_ERR_SUCCESS) { Config()->addRecentProject(file); } @@ -724,7 +724,7 @@ RzProjectErr MainWindow::saveProjectAs(bool *canceled) if (canceled) { *canceled = false; } - RzProjectErr err = rz_project_save_file(RzCoreLocked(core), file.toUtf8().constData()); + RzProjectErr err = rz_project_save_file(RzCoreLocked(core), file.toUtf8().constData(), false); if (err == RZ_PROJECT_ERR_SUCCESS) { Config()->addRecentProject(file); }