]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/qt-console/pages.cpp
This adds the ability to once again have classes that don't neccesarily dock. It...
[bacula/bacula] / bacula / src / qt-console / pages.cpp
index e99ad6d7a3cdf50c6058174f12f89b9d8a72ba38..1efc60a1016037529ed5489e9418b8ddfed3978c 100644 (file)
@@ -57,6 +57,15 @@ Pages::Pages()
    m_docked = false;
    m_onceDocked = false;
    m_closeable = true;
+   m_dockOnFirstUse = true;
+}
+
+/* first Use Dock */
+void Pages::firstUseDock()
+{
+   if (!m_onceDocked && m_dockOnFirstUse) {
+      dockPage();
+   }
 }
 
 /*