Skip to content
Browse files

Switch about window to current workspace if hidden.

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