From 2fb48e791b2d4b930956b473f31f10162ba6eff7 Mon Sep 17 00:00:00 2001 From: ispyisail Date: Mon, 5 Oct 2026 19:15:19 +1300 Subject: [PATCH] Live mode: open_project never stops on the backup question MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit openAndAddProject() asked "Créer une copie de sauvegarde ?" even when called non-interactively, so open_project waited for an answer from the user in front of the window. Only live mode opens projects that way. Co-Authored-By: Claude Opus 5.5 --- sources/qetdiagrameditor.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sources/qetdiagrameditor.cpp b/sources/qetdiagrameditor.cpp index 41c8e82e5..5c51490f2 100644 --- a/sources/qetdiagrameditor.cpp +++ b/sources/qetdiagrameditor.cpp @@ -1856,8 +1856,10 @@ bool QETDiagramEditor::openAndAddProject( box.exec(); } + //Not when nobody is there to answer: an assistant opening a + //project in live mode would wait on a window it cannot see BackupDialog backup_dialog(this); - if (backup_dialog.exec() == QDialog::Accepted) + if (interactive && backup_dialog.exec() == QDialog::Accepted) { QString backup_path = filepath_info.absolutePath() + QDir::separator() + QDateTime::currentDateTime().toString("yyyy-MM-dd-hh-mm") + "_" +