aboutsummaryrefslogtreecommitdiff
path: root/main.cpp
diff options
context:
space:
mode:
authorGravatar Chris Xiong <chirs241097@gmail.com> 2016-01-06 21:28:44 +0800
committerGravatar Chris Xiong <chirs241097@gmail.com> 2016-01-06 21:28:44 +0800
commit7fccb61519fe84b2ced274f1cc4859d5000e86c6 (patch)
treef66696e67d56e9e6015d613af84562364baaa9ed /main.cpp
parent8099672c3fd0bfc7804b0a92d05c57dcd4307268 (diff)
downloadQMidiPlayer-7fccb61519fe84b2ced274f1cc4859d5000e86c6.tar.xz
Maple Dream. (WTF)
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/main.cpp b/main.cpp
index c031262..c9f3b42 100644
--- a/main.cpp
+++ b/main.cpp
@@ -19,11 +19,11 @@
#include <QApplication>
#include <QStyle>
-int main(int argc, char *argv[])
+int main(int argc,char **argv)
{
QApplication a(argc,argv);
qmpMainWindow w;
- w.show();
+ if(w.pharseArgs(argc,argv)==1)return 0;
return a.exec();
}