[PC-BSD Commits] r15899 - pcbsd/current/src-qt4/warden/src

svn at pcbsd.org svn at pcbsd.org
Wed Mar 21 14:46:00 PDT 2012


Author: kris
Date: 2012-03-21 21:45:59 +0000 (Wed, 21 Mar 2012)
New Revision: 15899

Modified:
   pcbsd/current/src-qt4/warden/src/dialogwarden.cpp
   pcbsd/current/src-qt4/warden/src/dialogwarden.ui
Log:

Fix a bug switching jails not refreshing the package widget



Modified: pcbsd/current/src-qt4/warden/src/dialogwarden.cpp
===================================================================
--- pcbsd/current/src-qt4/warden/src/dialogwarden.cpp	2012-03-21 21:38:59 UTC (rev 15898)
+++ pcbsd/current/src-qt4/warden/src/dialogwarden.cpp	2012-03-21 21:45:59 UTC (rev 15899)
@@ -777,6 +777,8 @@
    pkgWidget->init(QString("/usr/jails/" + listJails->currentItem()->text(0)));
    QVBoxLayout *mWLayout = new QVBoxLayout();
    mWLayout->addWidget(pkgWidget);
+   if ( widgetPackages->layout() )
+     delete widgetPackages->layout();
    widgetPackages->setLayout(mWLayout);
 
 }

Modified: pcbsd/current/src-qt4/warden/src/dialogwarden.ui
===================================================================
--- pcbsd/current/src-qt4/warden/src/dialogwarden.ui	2012-03-21 21:38:59 UTC (rev 15898)
+++ pcbsd/current/src-qt4/warden/src/dialogwarden.ui	2012-03-21 21:45:59 UTC (rev 15899)
@@ -209,16 +209,11 @@
           <attribute name="title">
            <string>Packages</string>
           </attribute>
-          <widget class="QWidget" name="widgetPackages" native="true">
-           <property name="geometry">
-            <rect>
-             <x>10</x>
-             <y>10</y>
-             <width>491</width>
-             <height>341</height>
-            </rect>
-           </property>
-          </widget>
+          <layout class="QGridLayout" name="gridLayout_4">
+           <item row="0" column="0">
+            <widget class="QWidget" name="widgetPackages" native="true"/>
+           </item>
+          </layout>
          </widget>
         </widget>
        </item>



More information about the Commits mailing list