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

svn at pcbsd.org svn at pcbsd.org
Wed Aug 22 09:08:38 PDT 2012


Author: kris
Date: 2012-08-22 16:08:37 +0000 (Wed, 22 Aug 2012)
New Revision: 18557

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

Disable remove button when snapshot is mounted / cloned



Modified: pcbsd/current/src-qt4/warden-gui/dialogwarden.cpp
===================================================================
--- pcbsd/current/src-qt4/warden-gui/dialogwarden.cpp	2012-08-22 16:04:21 UTC (rev 18556)
+++ pcbsd/current/src-qt4/warden-gui/dialogwarden.cpp	2012-08-22 16:08:37 UTC (rev 18557)
@@ -1659,6 +1659,7 @@
       tmp = tr("(Cloned)");
       pushAddClone->setEnabled(false);
       pushRemoveClone->setEnabled(true);
+      pushRemoveSnap->setEnabled(false);
 
       for (int i = 0; i < cloneList.size(); ++i)
         if ( cloneList.at(i) == snapshotList.at(newVal) )
@@ -1672,6 +1673,7 @@
       labelClone->setText(tr("Snapshot not mounted"));
       pushAddClone->setEnabled(true);
       pushRemoveClone->setEnabled(false);
+      pushRemoveSnap->setEnabled(true);
    }
    labelSnap->setText(getSnapDateReadable(snapshotList.at(newVal)) + " " + tmp);
 }



More information about the Commits mailing list