Skip to content
Permalink
Browse files

Gui: disable auto transaction on showing task dialog

Fixes #0004265
  • Loading branch information
realthunder authored and wwmayer committed Feb 23, 2020
1 parent a6a1b02 commit 2b16d0605cd658eb40bc257fd44f8f4fe5f1554d
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/Gui/Control.cpp
@@ -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

0 comments on commit 2b16d06

Please sign in to comment.
You can’t perform that action at this time.