From 4d4b7c542fed615cf8699e093fa8b31eacc9f7ce Mon Sep 17 00:00:00 2001 From: Andrzej Rybczak Date: Sat, 13 Jun 2015 20:28:28 +0200 Subject: [PATCH] tag editor: when numbering tracks, discard other track tags if present --- NEWS | 1 + src/tag_editor.cpp | 2 ++ 2 files changed, 3 insertions(+) diff --git a/NEWS b/NEWS index cfd52505..ee8800e3 100644 --- a/NEWS +++ b/NEWS @@ -3,6 +3,7 @@ ncmpcpp-0.6.5 (????-??-??) * Description of mouse wheel usage on volume is now correct. * Configure script now fails if either readline or pthread specific headers are not present. * 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) diff --git a/src/tag_editor.cpp b/src/tag_editor.cpp index 2532d647..355e80ed 100644 --- a/src/tag_editor.cpp +++ b/src/tag_editor.cpp @@ -479,6 +479,8 @@ void TagEditor::enterPressed() (*it)->setTrack(boost::lexical_cast(i) + "/" + boost::lexical_cast(EditedSongs.size())); else (*it)->setTrack(boost::lexical_cast(i)); + // discard other track number tags + (*it)->setTrack("", 1); } Statusbar::print("Tracks numbered"); }