aboutsummaryrefslogtreecommitdiff
path: root/src/ui/mainwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/mainwindow.cpp')
-rw-r--r--src/ui/mainwindow.cpp4
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);