diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2009-01-05 17:00:02 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2009-01-05 17:00:02 +0000 |
| commit | 38ba9babb485a491c62a9ebd7a88e9253fccb839 (patch) | |
| tree | b8ed85c959cf340c51ecf36440db2aacef14eef7 /src/ui/mainwindow.cpp | |
| parent | 5810abb583017f18cd9cdb5b887c7ebf17c5cc6d (diff) | |
| download | qmmp-38ba9babb485a491c62a9ebd7a88e9253fccb839.tar.gz qmmp-38ba9babb485a491c62a9ebd7a88e9253fccb839.tar.bz2 qmmp-38ba9babb485a491c62a9ebd7a88e9253fccb839.zip | |
short command line keys
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@735 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/ui/mainwindow.cpp')
| -rw-r--r-- | src/ui/mainwindow.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ui/mainwindow.cpp b/src/ui/mainwindow.cpp index c7fb89397..faf8b1dda 100644 --- a/src/ui/mainwindow.cpp +++ b/src/ui/mainwindow.cpp @@ -552,7 +552,7 @@ bool MainWindow::processCommandArgs(const QStringList &slist,const QString& cwd) { QString str = slist[0]; - if (str.startsWith("--enqueue")) //check for "--enqueue" modifier + if (str.startsWith("--enqueue") || str.startsWith("-e")) //check for "--enqueue" modifier { if (slist.count() < 2) return FALSE; @@ -566,7 +566,7 @@ bool MainWindow::processCommandArgs(const QStringList &slist,const QString& cwd) } m_playListModel->addFileList(full_path_list); //TODO url support } - else if (str.startsWith("--")) // is it a command? + else if (str.startsWith("-")) // is it a command? { if (CommandLineManager::hasOption(str)) m_generalHandler->executeCommand(str); |
