From 4c39f839ce8807a5c9717ae0741d6c05bfc24f67 Mon Sep 17 00:00:00 2001 From: "Raine M. Ekman" Date: Tue, 28 Jan 2014 21:54:31 +0200 Subject: [PATCH] song.cpp: Check for TTY app before calling engine::updatePlayPauseIcons() --- src/core/song.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/core/song.cpp b/src/core/song.cpp index f01e7f0cd..9b5cefc90 100644 --- a/src/core/song.cpp +++ b/src/core/song.cpp @@ -26,6 +26,7 @@ #include #include #include +#include #include @@ -649,8 +650,9 @@ void song::playSong() m_paused = false; savePos(); - - engine::updatePlayPauseIcons(); + if(QApplication::type() != QApplication::Tty) { + engine::updatePlayPauseIcons(); + } } @@ -834,7 +836,9 @@ void song::stop() m_playMode = Mode_None; - engine::updatePlayPauseIcons(); + if(QApplication::type() != QApplication::Tty) { + engine::updatePlayPauseIcons(); + } }