aboutsummaryrefslogtreecommitdiff
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r--src/mainwindow.cpp15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index 36d672175..1e8280875 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -39,7 +39,6 @@
#include "eqwidget.h"
#include "mainvisual.h"
#include "playlistformat.h"
-#include "tcpserver.h"
#include "jumptotrackdialog.h"
#include "aboutdialog.h"
#include <addurldialog.h>
@@ -138,10 +137,6 @@ MainWindow::MainWindow(const QStringList& args, QWidget *parent)
updateEQ();
updateSkin();
- // Starting the TcpServer
-
- new TcpServer(this);
-
FileDialog::registerBuiltinFactories();
FileDialog::registerExternalFactories();
@@ -764,9 +759,17 @@ bool MainWindow::processCommandArgs(const QStringList &slist,const QString& cwd)
else if (str == "--pause")
pause();
else if (str == "--next")
+ {
next();
+ if(!m_core->isInitialized())
+ play();
+ }
else if (str == "--previous")
+ {
previous();
+ if(!m_core->isInitialized())
+ play();
+ }
else if (str == "--play-pause")
playPause();
else
@@ -781,8 +784,6 @@ bool MainWindow::processCommandArgs(const QStringList &slist,const QString& cwd)
full_path_list << s;
else
full_path_list << cwd + "/" + s;
- //qWarning("Current working dir: %s",qPrintable(workingDir));
- //qWarning("Full path to play: %s",qPrintable(workingDir + "/" + s));
}
setFileList(full_path_list);
}