mirror of
https://github.com/strawberrymusicplayer/strawberry
synced 2025-01-05 12:56:52 +01:00
RadioView: Remove duplicate double clicked
Already done in AutoExpandingTreeView::ItemDoubleClicked Fixes #1015
This commit is contained in:
parent
6abed76f70
commit
22844716d1
@ -48,8 +48,6 @@ RadioView::RadioView(QWidget *parent)
|
||||
setAttribute(Qt::WA_MacShowFocusRect, false);
|
||||
setSelectionMode(QAbstractItemView::ExtendedSelection);
|
||||
|
||||
QObject::connect(this, &RadioView::doubleClicked, this, &RadioView::DoubleClicked);
|
||||
|
||||
}
|
||||
|
||||
RadioView::~RadioView() { delete menu_; }
|
||||
@ -181,17 +179,3 @@ void RadioView::Donate() {
|
||||
|
||||
}
|
||||
|
||||
void RadioView::DoubleClicked() {
|
||||
|
||||
const QModelIndexList selected_indexes = selectedIndexes();
|
||||
if (selected_indexes.isEmpty()) return;
|
||||
|
||||
for (const QModelIndex &idx : selected_indexes) {
|
||||
if (idx.data(RadioModel::Role_Type).toInt() != RadioItem::Type_Channel) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
AddToPlaylist();
|
||||
|
||||
}
|
||||
|
@ -51,7 +51,6 @@ class RadioView : public AutoExpandingTreeView {
|
||||
void OpenInNewPlaylist();
|
||||
void Homepage();
|
||||
void Donate();
|
||||
void DoubleClicked();
|
||||
|
||||
private:
|
||||
QMenu *menu_;
|
||||
|
Loading…
Reference in New Issue
Block a user