tag editor: when numbering tracks, discard other track tags if present

This commit is contained in:
Andrzej Rybczak
2015-06-13 20:28:28 +02:00
parent aa8c47d578
commit 4d4b7c542f
2 changed files with 3 additions and 0 deletions

1
NEWS
View File

@@ -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)

View File

@@ -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");
} }