mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-09-20 15:24:14 +02:00
Route the last load-path message box through the wrapper
The "Système de contacts modifié" warning in QETProject::addElement()'s Erase branch called QMessageBox::warning directly, bypassing QET::QetMessageBox and so the non-interactive guard. It is reachable during a load, which is exactly the path this PR exists to unblock, so it could still hang a headless run. Behaviour is unchanged interactively, and unattended it now answers with the Yes the call site already passes as its default -- the same "continue" the previous code took. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
@@ -1202,7 +1202,7 @@ ElementsLocation QETProject::importElement(ElementsLocation &location)
|
||||
// Warn if the new element introduces slave contact groups
|
||||
QDomElement new_kind = location.xml().firstChildElement("kindInformations");
|
||||
if (!new_kind.firstChildElement("slaveContactGroups").isNull()) {
|
||||
QMessageBox::StandardButton answer = QMessageBox::warning(nullptr,
|
||||
QMessageBox::StandardButton answer = QET::QetMessageBox::warning(nullptr,
|
||||
tr("Système de contacts modifié"),
|
||||
tr("Le nouvel élément définit des groupes de contacts esclaves.\n"
|
||||
"Les éléments esclaves existants ne seront pas automatiquement "
|
||||
|
||||
Reference in New Issue
Block a user