Switch about window to current workspace if hidden.

This commit is contained in:
John Scipione
2013-02-11 21:25:51 -05:00
parent 381629a7b6
commit 66e9410806
2 changed files with 13 additions and 0 deletions
+1
View File
@@ -27,6 +27,7 @@ class BAboutWindow : public BWindow {
virtual ~BAboutWindow();
virtual bool QuitRequested();
virtual void Show();
BPoint AboutPosition(float width, float height);
void AddDescription(const char* description);
+12
View File
@@ -434,6 +434,18 @@ BAboutWindow::QuitRequested()
}
void
BAboutWindow::Show()
{
if (IsHidden()) {
// move to current workspace
SetWorkspaces(B_CURRENT_WORKSPACE);
}
BWindow::Show();
}
// #pragma mark - BAboutWindow public methods