Merge pull request #198 from softrabbit/stable-0.4

Check for TTY app before updating icons
This commit is contained in:
Tobias Doerffel
2014-01-29 13:48:02 -08:00

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();
}
}