summaryrefslogtreecommitdiffstats
path: root/playerwidget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'playerwidget.cpp')
-rw-r--r--playerwidget.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/playerwidget.cpp b/playerwidget.cpp
index cc921ea..9f15524 100644
--- a/playerwidget.cpp
+++ b/playerwidget.cpp
@@ -178,6 +178,7 @@ void PlayerWidget::setupGui(QSplashScreen *splash){
QAction *editA = new QAction(QIcon(":/quadd.png"), tr("Edit..."), this);
connect(editA, &QAction::triggered, [this, refreshA] { WebRadioDialog dlg(this); dlg.exec(); refreshA->trigger(); });
curW->view()->addAction(editA);
+ connect(curW->view(), &BeetView::doubleClicked, playA, &QAction::trigger);
}else{
QAction *addToPlayListA = new QAction(QIcon(":/belly_right.png"), tr("Add to playlist"), this);
connect(addToPlayListA, &QAction::triggered, this, &PlayerWidget::addToPlayList);
@@ -861,6 +862,7 @@ void PlayerWidget::doMetadataChange(const QString &key, const QVariant &value){
nowP->setData(title, CollectionWidget::TitleRole);
nowP->setText(np);
plRoot->appendRow(nowP);
+ mWebRadioView->scrollTo(mWebRadioModel->indexFromItem(nowP), QAbstractItemView::EnsureVisible);
mCurrentTE->clear();
mCurrentTE->append(QString("%1 %2").arg(tr("Artist:"), -20).arg(artist));
mCurrentTE->append(QString("%1 %2").arg(tr("Title:"), -20).arg(title));
@@ -936,6 +938,11 @@ void PlayerWidget::playUrl(const QModelIndex &idx){
mPlayA->setChecked(true);
mTrayIcon->setIcon(QIcon(":/play.png"));
emit playModeChanged(tr("Playing"));
+ QString msg = QString(tr("Streaming: %1").arg(idx.data(CollectionWidget::UrlRole).toString()));
+ emit message(msg);
+ emit numFilesChanged(0);
+ emit playListLengthChanged(0);
+ mRightTE->clear();
}
void PlayerWidget::volumeChanged(int volume){