[PC-BSD Commits] r13410 - pcbsd/current/src-qt4/pc-softwaremanager

svn at pcbsd.org svn at pcbsd.org
Mon Oct 17 11:34:51 PDT 2011


Author: kenmoore
Date: 2011-10-17 11:34:51 -0700 (Mon, 17 Oct 2011)
New Revision: 13410

Modified:
   pcbsd/current/src-qt4/pc-softwaremanager/softmanager-main.cpp
   pcbsd/current/src-qt4/pc-softwaremanager/softmanager-main.h
Log:
Fix the AppCafe to confirm quit if downloading when "x" is hit


Modified: pcbsd/current/src-qt4/pc-softwaremanager/softmanager-main.cpp
===================================================================
--- pcbsd/current/src-qt4/pc-softwaremanager/softmanager-main.cpp	2011-10-17 16:58:36 UTC (rev 13409)
+++ pcbsd/current/src-qt4/pc-softwaremanager/softmanager-main.cpp	2011-10-17 18:34:51 UTC (rev 13410)
@@ -677,3 +677,9 @@
   this->activateWindow();
   this->raise();
 }
+
+void PBM::closeEvent(QCloseEvent *event)
+{
+   slotQuitButtonClicked();
+
+}

Modified: pcbsd/current/src-qt4/pc-softwaremanager/softmanager-main.h
===================================================================
--- pcbsd/current/src-qt4/pc-softwaremanager/softmanager-main.h	2011-10-17 16:58:36 UTC (rev 13409)
+++ pcbsd/current/src-qt4/pc-softwaremanager/softmanager-main.h	2011-10-17 18:34:51 UTC (rev 13410)
@@ -53,6 +53,9 @@
 public slots:
     void slotSingleInstance();
 
+protected:
+    void closeEvent(QCloseEvent *event);
+
 private slots:
     void RemoveButtonSlot();
     void PopulateList();



More information about the Commits mailing list