From 2436955a59eed027b02ce73595c8682fd59aa423 Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Thu, 7 Aug 2014 11:24:34 +0000 Subject: fixed main window activation (windows only) git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@4425 90c681e8-e032-0410-971d-27865f9a5e38 --- src/app/main.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src') 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 #include #include +#ifdef Q_OS_WIN +#include +#include +#endif #include #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")); -- cgit v1.2.3-13-gbd6f