Skip to content

Commit

Permalink
Fix restoring docker locks
Browse files Browse the repository at this point in the history
We were reading from wrong configuration group.
  • Loading branch information
awaken1ng authored and dimula73 committed Dec 17, 2020
1 parent f690ccd commit 66b9f89
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions libs/ui/KisMainWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2095,12 +2095,10 @@ QDockWidget* KisMainWindow::createDockWidget(KoDockFactoryBase* factory)
dockWidget->hide();
}

bool locked = false;
group = KSharedConfig::openConfig()->group("krita").group("DockWidget " + factory->id());
locked = group.readEntry("Locked", locked);

if (titleBar && locked)
bool locked = group.readEntry("Locked", false);
if (titleBar && locked) {
titleBar->setLocked(true);
}

d->dockWidgetsMap.insert(factory->id(), dockWidget);
}
Expand Down

0 comments on commit 66b9f89

Please sign in to comment.