-
-
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
Move code from Track to TrackDAO / Fix DB mapping #4214
Conversation
Pull Request Test Coverage Report for Build 1139441457
💛 - Coveralls |
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.
Please improve the comments. The PR description is out of sight when reading the code.
src/library/dao/trackdao.h
Outdated
@@ -82,6 +83,10 @@ class TrackDAO : public QObject, public virtual DAO, public virtual GlobalTrackC | |||
|
|||
/// Ugly workaround, don't use!!! | |||
static void setTrackGenreInternal(Track* pTrack, const QString& genre); | |||
/// Ugly workaround, don't use!!! |
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.
a workaround for what?
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.
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.
More than expected. Thank you.
LGTM |
A cleanup PR before introducing a new file tag synchronization feature:
Track
: MakesetHeaderParsedFromTrackDAO()
private by moving the ugly workarounds as public methods intoTrackDAO
, which is used by less code and where it does not matter so much.TrackDAO
: Fix writing of theheader_parsed
column by populating it directly from the corresponding (deprecated) property. This was not a bug, just a conceptual issue. The effect is identical.