aboutsummaryrefslogtreecommitdiff
path: root/src/app/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/app/main.cpp')
-rw-r--r--src/app/main.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/app/main.cpp b/src/app/main.cpp
index b649ee35d..fc902d37f 100644
--- a/src/app/main.cpp
+++ b/src/app/main.cpp
@@ -25,12 +25,20 @@
#include <QIcon>
#include <stdio.h>
#include <stdlib.h>
+#ifdef Q_OS_WIN
+#include <windows.h>
+#include <winuser.h>
+#endif
#include <qmmp/qmmp.h>
#include "qmmpapplication.h"
#include "qmmpstarter.h"
int main(int argc, char *argv[])
{
+#ifdef Q_OS_WIN
+ //allows to activate main window from other instances
+ AllowSetForegroundWindow(ASFW_ANY);
+#endif
QmmpApplication a (argc, argv );
a.setApplicationName("qmmp");
a.setWindowIcon(QIcon(":/32x32/qmmp.png"));