aboutsummaryrefslogtreecommitdiff
path: root/src/ui/builtincommandlineoption.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/builtincommandlineoption.cpp')
-rw-r--r--src/ui/builtincommandlineoption.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ui/builtincommandlineoption.cpp b/src/ui/builtincommandlineoption.cpp
index e35914f34..32e22fb96 100644
--- a/src/ui/builtincommandlineoption.cpp
+++ b/src/ui/builtincommandlineoption.cpp
@@ -92,13 +92,13 @@ void BuiltinCommandLineOption::executeCommand(const QString & option_string, Mai
else if (option_string == "--next")
{
mw->next();
- if (!mw->soundCore()->isInitialized())
+ if (mw->soundCore()->state() == Qmmp::Stopped)
mw->play();
}
else if (option_string == "--previous")
{
mw->previous();
- if (!mw->soundCore()->isInitialized())
+ if (mw->soundCore()->state() == Qmmp::Stopped)
mw->play();
}
else if (option_string == "--play-pause")