From 0da53e3dd03e956a3380c9b3f12fe35974e61106 Mon Sep 17 00:00:00 2001 From: Philippe Saint-Pierre Date: Sat, 12 Sep 2009 03:44:10 +0000 Subject: [PATCH] Installer : truncated string in menu fields * Delay the display of the alert just a little bit, to let the menu fields enough time to adjust. Fixes ticket #3893. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33076 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/apps/installer/InstallerWindow.cpp | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/src/apps/installer/InstallerWindow.cpp b/src/apps/installer/InstallerWindow.cpp index 2d5e5d4597..88b84f36b6 100644 --- a/src/apps/installer/InstallerWindow.cpp +++ b/src/apps/installer/InstallerWindow.cpp @@ -50,6 +50,7 @@ const uint32 SHOW_BOTTOM_MESSAGE = 'iSBT'; const uint32 SETUP_MESSAGE = 'iSEP'; const uint32 START_SCAN = 'iSSC'; const uint32 PACKAGE_CHECKBOX = 'iPCB'; +const uint32 ENCOURAGE_DRIVESETUP = 'iENC'; class LogoView : public BView { public: @@ -382,6 +383,13 @@ InstallerWindow::MessageReceived(BMessage *msg) fSizeView->SetText(string); break; } + case ENCOURAGE_DRIVESETUP: + { + (new BAlert("use drive setup", "No partitions have been found that " + "are suitable for installation. Please setup partitions and " + "initialize at least one partition with the Be File System." , + "Ok"))->Go(); + } case MSG_STATUS_MESSAGE: { // TODO: Was this supposed to prevent status messages still arriving @@ -629,10 +637,7 @@ InstallerWindow::_UpdateControls() if (!fEncouragedToSetupPartitions && !foundOneSuitableTarget) { // Focus the users attention on the DriveSetup button fEncouragedToSetupPartitions = true; - (new BAlert("use drive setup", "No partitions have been found that " - "are suitable for installation. Please setup partitions and " - "initialize at least one partition with the Be File System." , - "Ok"))->Go(); + PostMessage(ENCOURAGE_DRIVESETUP); } }