From 2b16d0605cd658eb40bc257fd44f8f4fe5f1554d Mon Sep 17 00:00:00 2001 From: "Zheng, Lei" Date: Mon, 24 Feb 2020 07:59:19 +0800 Subject: [PATCH] Gui: disable auto transaction on showing task dialog Fixes #0004265 --- src/Gui/Control.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Gui/Control.cpp b/src/Gui/Control.cpp index cf2eb9f55b..522c4c21ba 100644 --- a/src/Gui/Control.cpp +++ b/src/Gui/Control.cpp @@ -35,6 +35,7 @@ #include "Control.h" #include "TaskView/TaskView.h" +#include #include #include #include @@ -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