song.cpp: Check for TTY app before calling engine::updatePlayPauseIcons()

This commit is contained in:
Raine M. Ekman
2014-01-28 21:54:31 +02:00
parent 554c78b583
commit 4c39f839ce

View File

@@ -26,6 +26,7 @@
#include <QtCore/QFile>
#include <QtCore/QFileInfo>
#include <QtGui/QMessageBox>
#include <QApplication>
#include <math.h>
@@ -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();
}
}