Permalink
Browse files

Switch about window to current workspace if hidden.

  • Loading branch information...
jscipione committed Feb 12, 2013
1 parent 381629a commit 66e94108063bab01c7859442fe0d9ed777de9808
Showing with 13 additions and 0 deletions.
  1. +1 −0 headers/private/shared/AboutWindow.h
  2. +12 −0 src/kits/shared/AboutWindow.cpp
@@ -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);
@@ -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

0 comments on commit 66e9410

Please sign in to comment.