[PC-BSD Commits] r17910 - pcbsd/current/src-qt4/pc-firstbootgui

svn at pcbsd.org svn at pcbsd.org
Tue Jul 24 10:31:36 PDT 2012


Author: kris
Date: 2012-07-24 17:31:36 +0000 (Tue, 24 Jul 2012)
New Revision: 17910

Modified:
   pcbsd/current/src-qt4/pc-firstbootgui/firstboot.cpp
   pcbsd/current/src-qt4/pc-firstbootgui/firstboot.h
Log:

Ignore close events on first boot wizard



Modified: pcbsd/current/src-qt4/pc-firstbootgui/firstboot.cpp
===================================================================
--- pcbsd/current/src-qt4/pc-firstbootgui/firstboot.cpp	2012-07-24 17:25:16 UTC (rev 17909)
+++ pcbsd/current/src-qt4/pc-firstbootgui/firstboot.cpp	2012-07-24 17:31:36 UTC (rev 17910)
@@ -2,6 +2,7 @@
 #include <QTimer>
 #include <QGraphicsPixmapItem>
 #include <QTemporaryFile>
+#include <QCloseEvent>
 #include <pcbsd-netif.h>
 #include <pcbsd-utils.h>
 
@@ -394,3 +395,8 @@
   kbLay = lay;
   kbVar = var;
 }
+
+void Installer::closeEvent(QCloseEvent *event)
+{
+   event->ignore();
+}

Modified: pcbsd/current/src-qt4/pc-firstbootgui/firstboot.h
===================================================================
--- pcbsd/current/src-qt4/pc-firstbootgui/firstboot.h	2012-07-24 17:25:16 UTC (rev 17909)
+++ pcbsd/current/src-qt4/pc-firstbootgui/firstboot.h	2012-07-24 17:31:36 UTC (rev 17910)
@@ -82,6 +82,9 @@
     QString kbLay;
     QString kbVar;
 
+protected:
+    void closeEvent(QCloseEvent *event);
+
 };
 
 #endif // INSTALLER_H



More information about the Commits mailing list