From 5c42ff5dfb38d05d16da5e6f5f7b7c4c025a8095 Mon Sep 17 00:00:00 2001 From: Arno Date: Wed, 8 Mar 2017 13:56:50 +0100 Subject: Set the tooltip for the tray icon in playCurrent Otherwise it won't advance to the next song... --- playerwidget.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/playerwidget.cpp b/playerwidget.cpp index e55d1a5..5b907d8 100644 --- a/playerwidget.cpp +++ b/playerwidget.cpp @@ -14,14 +14,12 @@ #include #include #include -#include #include #include #include #include #include #include -#include #include #include @@ -617,8 +615,6 @@ void PlayerWidget::doPlay(){ sel = mPlayListView->selectionModel()->selectedRows(); } playCurrent(sel.first()); - mTrayIcon->setIcon(QIcon(":/play.png")); - mTrayIcon->setToolTip(mCurWinTitle); } void PlayerWidget::doStop(){ @@ -895,6 +891,8 @@ void PlayerWidget::playCurrent(const QModelIndex &index){ mPlayer->stop(); QString fullPath = index.data(FullPathRole).toString(); play(fullPath); + mTrayIcon->setIcon(QIcon(":/play.png")); + mTrayIcon->setToolTip(mCurWinTitle); } void PlayerWidget::play(const QString &fullPath){ -- cgit v1.2.3-70-g09d2