From 26353e2bd785b6cc72da01b450d049e7f23dc9a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20A=C3=9Fmus?= Date: Mon, 25 Jan 2010 10:00:13 +0000 Subject: [PATCH] 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. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35276 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/apps/installer/InstallerWindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/apps/installer/InstallerWindow.cpp b/src/apps/installer/InstallerWindow.cpp index ca2eb31a3c..0f77da377f 100644 --- a/src/apps/installer/InstallerWindow.cpp +++ b/src/apps/installer/InstallerWindow.cpp @@ -503,7 +503,7 @@ InstallerWindow::QuitRequested() 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",