Gui: [skip ci] add option to automatically close task dialog if undo/redo was pressed
This commit is contained in:
@@ -532,12 +532,22 @@ void TaskView::slotDeletedDocument()
|
||||
|
||||
void TaskView::slotUndoDocument(const App::Document&)
|
||||
{
|
||||
if (ActiveDialog && ActiveDialog->isAutoCloseOnTransactionChange()) {
|
||||
ActiveDialog->autoClosedOnTransactionChange();
|
||||
removeDialog();
|
||||
}
|
||||
|
||||
if (!ActiveDialog)
|
||||
updateWatcher();
|
||||
}
|
||||
|
||||
void TaskView::slotRedoDocument(const App::Document&)
|
||||
{
|
||||
if (ActiveDialog && ActiveDialog->isAutoCloseOnTransactionChange()) {
|
||||
ActiveDialog->autoClosedOnTransactionChange();
|
||||
removeDialog();
|
||||
}
|
||||
|
||||
if (!ActiveDialog)
|
||||
updateWatcher();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user