Skip to content

Commit

Permalink
Gui: disable auto transaction on showing task dialog
Browse files Browse the repository at this point in the history
Fixes #4265
  • Loading branch information
realthunder authored and wwmayer committed Mar 14, 2020
1 parent a6a1b02 commit 2b16d06
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Gui/Control.cpp
Expand Up @@ -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>
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 2b16d06

Please sign in to comment.