X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=src%2FAboutView.h;h=2d3e0c4dc394341f1fbc1fa88f308e9b98c71dbb;hb=3c8c537559e6bef5f019196b0989e95863ddd3ee;hp=817038012bbf65f2ceece6cc152116cf1274f92c;hpb=63b7586c1282acfb82a9b1971320052d6ee0a707;p=minitube diff --git a/src/AboutView.h b/src/AboutView.h index 8170380..2d3e0c4 100644 --- a/src/AboutView.h +++ b/src/AboutView.h @@ -4,6 +4,9 @@ #include #include "View.h" #include "constants.h" +#ifdef APP_MAC +#include "macutils.h" +#endif class AboutView : public QWidget, public View { @@ -11,14 +14,18 @@ class AboutView : public QWidget, public View { public: AboutView(QWidget *parent); - void appear() {} + void appear() { +#ifdef APP_MAC + mac::uncloseWindow(window()->winId()); +#endif + } void disappear() {} QMap metadata() { QMap metadata; metadata.insert("title", tr("About")); metadata.insert("description", tr("What you always wanted to know about %1 and never dared to ask") - .arg(Constants::APP_NAME)); + .arg(Constants::NAME)); return metadata; }