diff --git a/src/internet/core/internetmodel.cpp b/src/internet/core/internetmodel.cpp index 8718cd8b5..bba5ff400 100644 --- a/src/internet/core/internetmodel.cpp +++ b/src/internet/core/internetmodel.cpp @@ -292,14 +292,6 @@ QStringList InternetModel::mimeTypes() const { } QMimeData* InternetModel::mimeData(const QModelIndexList& indexes) const { - // Special case for when the user double clicked on a special item. - if (indexes.count() == 1 && indexes[0].data(Role_PlayBehaviour).toInt() == - PlayBehaviour_DoubleClickAction) { - InternetModel::ServiceForIndex(indexes[0]) - ->ItemDoubleClicked(itemFromIndex(indexes[0])); - return nullptr; - } - if (indexes.count() == 1 && indexes[0].data(Role_Type).toInt() == Type_SmartPlaylist) { GeneratorPtr generator = InternetModel::ServiceForIndex(indexes[0]) diff --git a/src/internet/core/internetmodel.h b/src/internet/core/internetmodel.h index 94aa05145..61f75283e 100644 --- a/src/internet/core/internetmodel.h +++ b/src/internet/core/internetmodel.h @@ -113,10 +113,6 @@ class InternetModel : public QStandardItemModel { // This is used when dragging a playlist item for instance, to have all the // playlit's items info loaded in the mime data. PlayBehaviour_MultipleItems, - - // This item might not represent a song - the service's ItemDoubleClicked() - // slot will get called instead to do some custom action. - PlayBehaviour_DoubleClickAction, }; struct ServiceItem { diff --git a/src/internet/core/internetservice.h b/src/internet/core/internetservice.h index e455f6342..e5b529ed4 100644 --- a/src/internet/core/internetservice.h +++ b/src/internet/core/internetservice.h @@ -64,7 +64,6 @@ class InternetService : public QObject { virtual bool has_initial_load_settings() const { return false; } virtual void InitialLoadSettings() {} virtual void ShowContextMenu(const QPoint& global_pos) {} - virtual void ItemDoubleClicked(QStandardItem* item) {} // Create a generator for smart playlists virtual smart_playlists::GeneratorPtr CreateGenerator(QStandardItem* item) { return smart_playlists::GeneratorPtr(); diff --git a/src/internet/spotify/spotifyservice.cpp b/src/internet/spotify/spotifyservice.cpp index 99d3a6fed..a2ebdbe1a 100644 --- a/src/internet/spotify/spotifyservice.cpp +++ b/src/internet/spotify/spotifyservice.cpp @@ -850,8 +850,6 @@ void SpotifyService::GetCurrentPlaylistUrlToShare() const { InternetService::ShowUrlBox(tr("Spotify playlist's URL"), url); } -void SpotifyService::ItemDoubleClicked(QStandardItem* item) {} - void SpotifyService::DropMimeData(const QMimeData* data, const QModelIndex& index) { QModelIndex playlist_root_index = index; diff --git a/src/internet/spotify/spotifyservice.h b/src/internet/spotify/spotifyservice.h index 1b162dc3c..351faa1c5 100644 --- a/src/internet/spotify/spotifyservice.h +++ b/src/internet/spotify/spotifyservice.h @@ -73,7 +73,6 @@ class SpotifyService : public InternetService { QStandardItem* CreateRootItem() override; void LazyPopulate(QStandardItem* parent) override; void ShowContextMenu(const QPoint& global_pos) override; - void ItemDoubleClicked(QStandardItem* item) override; void DropMimeData(const QMimeData* data, const QModelIndex& index) override; QList playlistitem_actions(const Song& song) override; PlaylistItem::Options playlistitem_options() const override;