1
0
mirror of https://github.com/KDE/latte-dock.git synced 2025-03-23 02:50:12 +03:00

fix layout lock/unlock from settings

This commit is contained in:
Michail Vourlakos 2019-05-05 18:07:18 +03:00
parent 55671ae31c
commit 05161a1ab8

View File

@ -1618,8 +1618,8 @@ bool SettingsDialog::saveAllChanges()
Layout::GenericLayout *generic = m_corona->layoutManager()->layout(m_layouts[id]->name());
Layout::GenericLayout *layout = generic ? generic : m_layouts[id];
if (generic && locked && generic->isWritable()) {
generic->lock();
if (layout && locked && layout->isWritable()) {
layout->lock();
}
}