Use correct file extension in organize preview and resulting filename

Fixes #564
This commit is contained in:
Jonas Kvinge
2020-10-18 13:24:33 +02:00
parent cf17ff4478
commit 2ad1a60e59
5 changed files with 19 additions and 7 deletions

View File

@@ -65,7 +65,7 @@ class OrganizeFormat {
void set_replace_spaces(const bool v) { replace_spaces_ = v; }
bool IsValid() const;
QString GetFilenameForSong(const Song &song) const;
QString GetFilenameForSong(const Song &song, QString extension = QString()) const;
class Validator : public QValidator {
public: