diff options
author | Ken Moore <ken@ixsystems.com> | 2017-06-20 09:39:12 -0400 |
---|---|---|
committer | Ken Moore <ken@ixsystems.com> | 2017-06-20 09:39:12 -0400 |
commit | fa42acfa3b3decbb8788d07935bfe0b3ca0c5eeb (patch) | |
tree | 47c3591e6e8b8df2bd95586a8538f4076b22ad25 /src-qt5 | |
parent | Merge branch 'master' of github.com:trueos/lumina (diff) | |
download | lumina-fa42acfa3b3decbb8788d07935bfe0b3ca0c5eeb.tar.gz lumina-fa42acfa3b3decbb8788d07935bfe0b3ca0c5eeb.tar.bz2 lumina-fa42acfa3b3decbb8788d07935bfe0b3ca0c5eeb.zip |
Quick adjustment for when pianobar is not installed
Diffstat (limited to 'src-qt5')
-rw-r--r-- | src-qt5/desktop-utils/lumina-mediaplayer/mainUI.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src-qt5/desktop-utils/lumina-mediaplayer/mainUI.cpp b/src-qt5/desktop-utils/lumina-mediaplayer/mainUI.cpp index cf7a41cb..dfd859d7 100644 --- a/src-qt5/desktop-utils/lumina-mediaplayer/mainUI.cpp +++ b/src-qt5/desktop-utils/lumina-mediaplayer/mainUI.cpp @@ -98,6 +98,7 @@ void MainUI::setupPlayer(){ } void MainUI::setupPandora(){ + PANDORA = new PianoBarProcess(this); if(!LUtils::isValidBinary("pianobar")){ ui->radio_pandora->setEnabled(false); ui->radio_local->setChecked(true); @@ -107,7 +108,7 @@ void MainUI::setupPandora(){ } ui->radio_pandora->setToolTip(tr("Stream music from the Pandora online radio service")); ui->radio_pandora->setStatusTip(ui->radio_pandora->toolTip()); - PANDORA = new PianoBarProcess(this); + connect(PANDORA, SIGNAL(currentStateChanged(PianoBarProcess::State)), this, SLOT(PandoraStateChanged(PianoBarProcess::State)) ); connect(PANDORA, SIGNAL(NewInformation(QString)), this, SLOT(NewPandoraInfo(QString)) ); connect(PANDORA, SIGNAL(NowPlayingStation(QString, QString)), this, SLOT(PandoraStationChanged(QString)) ); |