Skip to content

Commit

Permalink
Fix toolbox docker being movable/floatable/closable when locked
Browse files Browse the repository at this point in the history
Happened when opening Krita with previously locked toolbox.
  • Loading branch information
awaken1ng authored and dimula73 committed Dec 17, 2020
1 parent d8bae93 commit 0c6de3c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion libs/ui/KisMainWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,6 @@ KisMainWindow::KisMainWindow(QUuid uuid)

KoToolBoxFactory toolBoxFactory;
QDockWidget *toolbox = createDockWidget(&toolBoxFactory);
toolbox->setFeatures(QDockWidget::DockWidgetMovable | QDockWidget::DockWidgetFloatable | QDockWidget::DockWidgetClosable);

KisConfig cfg(true);
if (cfg.toolOptionsInDocker()) {
Expand Down
1 change: 0 additions & 1 deletion libs/widgets/KoToolBoxDocker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ KoToolBoxDocker::KoToolBoxDocker(KoToolBox *toolBox)
, m_toolBox(toolBox)
, m_scrollArea(new KoToolBoxScrollArea(toolBox, this))
{
setFeatures(QDockWidget::DockWidgetMovable | QDockWidget::DockWidgetFloatable);
setWidget(m_scrollArea);

KoDockWidgetTitleBar* titleBar = new KoDockWidgetTitleBar(this);
Expand Down

0 comments on commit 0c6de3c

Please sign in to comment.