From: Emmanuel Pescosta Date: Tue, 30 Oct 2012 22:10:43 +0000 (+0100) Subject: Fix Bug 279333 - Panels can be moved even if locked X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/b4998a7cd4d5a09ca5ccf15c99bd642ae6bb8571 Fix Bug 279333 - Panels can be moved even if locked BUG: 279333 FIXED-IN: 4.9.3 REVIEW: 107135 --- diff --git a/src/dolphindockwidget.cpp b/src/dolphindockwidget.cpp index 72e06a656..0d8aea7bd 100644 --- a/src/dolphindockwidget.cpp +++ b/src/dolphindockwidget.cpp @@ -68,8 +68,12 @@ void DolphinDockWidget::setLocked(bool lock) m_dockTitleBar = new DolphinDockTitleBar(this); } setTitleBarWidget(m_dockTitleBar); + setFeatures(QDockWidget::NoDockWidgetFeatures); } else { setTitleBarWidget(0); + setFeatures(QDockWidget::DockWidgetMovable | + QDockWidget::DockWidgetFloatable | + QDockWidget::DockWidgetClosable); } } }