diff --git a/src/apps/installer/InstallerWindow.cpp b/src/apps/installer/InstallerWindow.cpp index 75212b40dc..7fc87545ca 100644 --- a/src/apps/installer/InstallerWindow.cpp +++ b/src/apps/installer/InstallerWindow.cpp @@ -799,22 +799,23 @@ InstallerWindow::_UpdateControls() } fDestMenuField->MenuItem()->SetLabel(label.String()); + BString statusText; if (srcItem != NULL && dstItem != NULL) { - BString message; - message.SetToFormat(B_TRANSLATE("Press the Begin button to install " + statusText.SetToFormat(B_TRANSLATE("Press the Begin button to install " "from '%1s' onto '%2s'."), srcItem->Name(), dstItem->Name()); - _SetStatusMessage(message.String()); } else if (srcItem != NULL) { - _SetStatusMessage(B_TRANSLATE("Choose the disk you want to install " - "onto from the pop-up menu. Then click \"Begin\".")); + statusText = B_TRANSLATE("Choose the disk you want to install " + "onto from the pop-up menu. Then click \"Begin\"."); } else if (dstItem != NULL) { - _SetStatusMessage(B_TRANSLATE("Choose the source disk from the " - "pop-up menu. Then click \"Begin\".")); + statusText = B_TRANSLATE("Choose the source disk from the " + "pop-up menu. Then click \"Begin\"."); } else { - _SetStatusMessage(B_TRANSLATE("Choose the source and destination disk " - "from the pop-up menus. Then click \"Begin\".")); + statusText = B_TRANSLATE("Choose the source and destination disk " + "from the pop-up menus. Then click \"Begin\"."); } + _SetStatusMessage(statusText.String()); + fInstallStatus = kReadyForInstall; fBeginButton->SetLabel(B_TRANSLATE("Begin")); fBeginButton->SetEnabled(srcItem && dstItem);