]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Fix Bug 279333 - Panels can be moved even if locked
authorEmmanuel Pescosta <emmanuelpescosta099@gmail.com>
Tue, 30 Oct 2012 22:10:43 +0000 (23:10 +0100)
committerEmmanuel Pescosta <emmanuelpescosta099@gmail.com>
Tue, 30 Oct 2012 22:10:43 +0000 (23:10 +0100)
BUG: 279333
FIXED-IN: 4.9.3
REVIEW: 107135

src/dolphindockwidget.cpp

index 72e06a656bce71c4ffc83871c0f7d8dcea30bbee..0d8aea7bdf24ad7c398554042898106188a109d7 100644 (file)
@@ -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);
         }
     }
 }