mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-10-05 10:34:13 +02:00
Live mode: open_project never stops on the backup question
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 <noreply@anthropic.com>
This commit is contained in:
@@ -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") + "_" +
|
||||
|
||||
Reference in New Issue
Block a user