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

master
Andrzej Rybczak 11 years ago
parent aa8c47d578
commit 4d4b7c542f
  1. 1
      NEWS
  2. 2
      src/tag_editor.cpp

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

Loading…
Cancel
Save