Gui: Make VarSet dialog modal

Also tracks its own transactions to prevent interfering with other
transactions.
This commit is contained in:
Pieter Hijma
2024-10-27 20:02:16 +01:00
committed by Yorik van Havre
parent aabc219366
commit d215ff1844
4 changed files with 52 additions and 11 deletions

View File

@@ -46,6 +46,10 @@ bool ViewProviderVarSet::doubleClicked()
dialog = std::make_unique<DlgAddPropertyVarSet>(getMainWindow(), this);
}
// Do not use exec() here because it blocks and prevents command Std_VarSet
// to commit the autotransaction. This in turn prevents the dialog to
// handle transactions well.
dialog->setWindowModality(Qt::ApplicationModal);
dialog->show();
dialog->raise();
dialog->activateWindow();