tag editor: when numbering tracks, discard other track tags if present
This commit is contained in:
1
NEWS
1
NEWS
@@ -3,6 +3,7 @@ ncmpcpp-0.6.5 (????-??-??)
|
|||||||
* Description of mouse wheel usage on volume is now correct.
|
* Description of mouse wheel usage on volume is now correct.
|
||||||
* Configure script now fails if either readline or pthread specific headers are not present.
|
* Configure script now fails if either readline or pthread specific headers are not present.
|
||||||
* Searching in text fields now respects regular expression configuration.
|
* Searching in text fields now respects regular expression configuration.
|
||||||
|
* When numbering tracks in tag editor all the other track tags are discarded.
|
||||||
|
|
||||||
ncmpcpp-0.6.4 (2015-05-02)
|
ncmpcpp-0.6.4 (2015-05-02)
|
||||||
|
|
||||||
|
|||||||
@@ -479,6 +479,8 @@ void TagEditor::enterPressed()
|
|||||||
(*it)->setTrack(boost::lexical_cast<std::string>(i) + "/" + boost::lexical_cast<std::string>(EditedSongs.size()));
|
(*it)->setTrack(boost::lexical_cast<std::string>(i) + "/" + boost::lexical_cast<std::string>(EditedSongs.size()));
|
||||||
else
|
else
|
||||||
(*it)->setTrack(boost::lexical_cast<std::string>(i));
|
(*it)->setTrack(boost::lexical_cast<std::string>(i));
|
||||||
|
// discard other track number tags
|
||||||
|
(*it)->setTrack("", 1);
|
||||||
}
|
}
|
||||||
Statusbar::print("Tracks numbered");
|
Statusbar::print("Tracks numbered");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user