From 38ba9babb485a491c62a9ebd7a88e9253fccb839 Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Mon, 5 Jan 2009 17:00:02 +0000 Subject: short command line keys git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@735 90c681e8-e032-0410-971d-27865f9a5e38 --- src/ui/mainwindow.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/ui/mainwindow.cpp') 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); -- cgit v1.2.3-13-gbd6f