-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Import from Rhythmbox playlist fix #11661
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you spend some more time making clazy happy? I think you'll need to add the appropriate override
s to all member functions of the class.
BaseSqlTableModel* RhythmboxFeature::getPlaylistModelForPlaylist(const QString& playlist) { | ||
BaseExternalPlaylistModel* pModel = new BaseExternalPlaylistModel( | ||
this, m_pLibrary->trackCollections(), | ||
"mixxx.db.model.rhythmbox_playlist", | ||
"rhythmbox_playlists", | ||
"rhythmbox_playlist_tracks", | ||
m_trackSource); | ||
std::unique_ptr<BaseSqlTableModel> | ||
RhythmboxFeature::createPlaylistModelForPlaylist(const QString& playlist) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just to make sure I understand the fix. The issue was basically that an oversight during refactoring resulted in the wrong member function being called?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, the getPlaylistModelForPlaylist() is no longer called, instead the default base class implementation is used returning null.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
code LGTM. I don't use rythmbox so I can't really verify this fix easily
I can. And the coding mistake was obvious. |
Sure... |
This fixes a regression since #11230 and Mixxx 2.3.4
that bulk importing tracks from playlists was broken.