Gui: Make VarSet dialog modal
Also tracks its own transactions to prevent interfering with other transactions.
This commit is contained in:
committed by
Yorik van Havre
parent
aabc219366
commit
d215ff1844
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user