[haiku-commits] r35276 - haiku/trunk/src/apps/installer

  • From: superstippi@xxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Mon, 25 Jan 2010 11:00:13 +0100 (CET)

Author: stippi
Date: 2010-01-25 11:00:13 +0100 (Mon, 25 Jan 2010)
New Revision: 35276
Changeset: http://dev.haiku-os.org/changeset/35276/haiku

Modified:
   haiku/trunk/src/apps/installer/InstallerWindow.cpp
Log:
When the Quit button is invoked after an installation, do not prompt the user
for confirmation to restart the computer. Untested, but with good chances of
working as intended.


Modified: haiku/trunk/src/apps/installer/InstallerWindow.cpp
===================================================================
--- haiku/trunk/src/apps/installer/InstallerWindow.cpp  2010-01-25 04:10:32 UTC 
(rev 35275)
+++ haiku/trunk/src/apps/installer/InstallerWindow.cpp  2010-01-25 10:00:13 UTC 
(rev 35276)
@@ -503,7 +503,7 @@
                return false;
        }
 
-       if ((Flags() & B_NOT_MINIMIZABLE) != 0) {
+       if (fInstallStatus != kFinished && (Flags() & B_NOT_MINIMIZABLE) != 0) {
                // This means Deskbar is not running, i.e. Installer is the only
                // thing on the screen and we will reboot the machine once it 
quits.
                if ((new BAlert("reallyQuit",


Other related posts:

  • » [haiku-commits] r35276 - haiku/trunk/src/apps/installer - superstippi