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

svn at pcbsd.org svn at pcbsd.org
Thu Jul 12 06:19:38 PDT 2012


Author: kris
Date: 2012-07-12 13:19:38 +0000 (Thu, 12 Jul 2012)
New Revision: 17713

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

Fix a bug when doing snapshot reverts, don't lock the UI if user clicks NO



Modified: pcbsd/current/src-qt4/warden-gui/dialogwarden.cpp
===================================================================
--- pcbsd/current/src-qt4/warden-gui/dialogwarden.cpp	2012-07-12 09:19:22 UTC (rev 17712)
+++ pcbsd/current/src-qt4/warden-gui/dialogwarden.cpp	2012-07-12 13:19:38 UTC (rev 17713)
@@ -1502,9 +1502,6 @@
 void dialogWarden::slotRestoreSnap()
 {
    // Update status
-   groupSnaps->setEnabled(false); 
-   labelSnap->setText(tr("Reverting snapshot... Please wait..."));
-
    currentSnapshot = -1;
 
    QString IP = listJails->currentItem()->text(0);
@@ -1516,6 +1513,9 @@
    if ( ret != QMessageBox::Yes )
       return;
 
+   groupSnaps->setEnabled(false); 
+   labelSnap->setText(tr("Reverting snapshot... Please wait..."));
+
    dialogOutput = new dialogDisplayOutput();
    dialogOutput->setModal(true);
    dialogOutput->programInit(FALSE);



More information about the Commits mailing list