From 28b6c8138bf1f92de983f52fc41dbf92a6bd74de Mon Sep 17 00:00:00 2001 From: "Bruno G. Albuquerque" Date: Tue, 5 May 2009 01:31:01 +0000 Subject: [PATCH] - Revert to calling Minimize() on the window constructor as this works as expected now. - Yeah, yeah... Style guidelines. I just followed what is used throughout this file. :) git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30630 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/bin/bemail_utils/spamdbm.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/bin/bemail_utils/spamdbm.cpp b/src/bin/bemail_utils/spamdbm.cpp index 01a35085d0..88c3eb4fcc 100644 --- a/src/bin/bemail_utils/spamdbm.cpp +++ b/src/bin/bemail_utils/spamdbm.cpp @@ -4904,7 +4904,6 @@ void ABSApp::ReadyToRun () } else { DatabaseWindowPntr->Show (); /* Starts the window's message loop. */ - DatabaseWindowPntr->Minimize (g_ServerMode); } } @@ -7057,6 +7056,12 @@ DatabaseWindow::DatabaseWindow () if (m_WordsViewPntr == NULL) goto ErrorExit; AddChild (m_WordsViewPntr); + + /* Minimize the window if we are starting up in server mode. This is done + before the window is open so it doesn't flash onto the screen, and possibly + steal a keystroke or two. The ControlsView will further update the minimize + mode when it detects changes in the server mode. */ + Minimize (g_ServerMode); return;