[PC-BSD Commits] r17703 - pcbsd/current/src-qt4/libpcbsd

svn at pcbsd.org svn at pcbsd.org
Tue Jul 10 08:34:57 PDT 2012


Author: kris
Date: 2012-07-10 15:34:57 +0000 (Tue, 10 Jul 2012)
New Revision: 17703

Modified:
   pcbsd/current/src-qt4/libpcbsd/dialogMetaProgress.cpp
Log:

Fix the dialog canceling packages, make sure to ignore the event
if the user chooses no



Modified: pcbsd/current/src-qt4/libpcbsd/dialogMetaProgress.cpp
===================================================================
--- pcbsd/current/src-qt4/libpcbsd/dialogMetaProgress.cpp	2012-07-10 12:22:54 UTC (rev 17702)
+++ pcbsd/current/src-qt4/libpcbsd/dialogMetaProgress.cpp	2012-07-10 15:34:57 UTC (rev 17703)
@@ -73,9 +73,12 @@
 				"If you cancel now the packages may be corrupted. Cancel anyway?"),
                                 QMessageBox::Yes | QMessageBox::No,
                                 QMessageBox::No);
-   if ( ret != QMessageBox::Yes)
-      return;
 
-   emit canceled();
-   close();
+   if ( ret == QMessageBox::Yes) {
+     emit canceled();
+     close();
+     return;
+   }
+
+   event->ignore();
 }



More information about the Commits mailing list