Gui: disable auto transaction on showing task dialog

Fixes #0004265
This commit is contained in:
Zheng, Lei
2020-02-24 07:59:19 +08:00
committed by wmayer
parent a6a1b02d40
commit 2b16d0605c

View File

@@ -35,6 +35,7 @@
#include "Control.h"
#include "TaskView/TaskView.h"
#include <App/AutoTransaction.h>
#include <Gui/MainWindow.h>
#include <Gui/ComboView.h>
#include <Gui/DockWindowManager.h>
@@ -147,6 +148,11 @@ void ControlSingleton::showDialog(Gui::TaskView::TaskDialog *dlg)
dw->raise();
}
}
// Since the caller sets up a modeless task panel, it indicates intension
// for prolonged editing. So disable auto transaction in the current call
// stack.
App::AutoTransaction::setEnable(false);
}
QTabWidget* ControlSingleton::tabPanel() const