summaryrefslogtreecommitdiff
path: root/src/tag_editor.cpp
diff options
context:
space:
mode:
authorAndrzej Rybczak <electricityispower@gmail.com>2015-05-17 23:54:46 +0200
committerAndrzej Rybczak <electricityispower@gmail.com>2015-05-17 23:54:46 +0200
commita6c120037fe1e22bc692ebf5910bad77f076af0d (patch)
tree0efe4f4b643c100fa588332d2b48fbc0d26e257c /src/tag_editor.cpp
parentc7fe74dd6670c61c0607552269fdb1ba0970f048 (diff)
tag editor: when numbering tracks, discard other track tags if present
Diffstat (limited to 'src/tag_editor.cpp')
-rw-r--r--src/tag_editor.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tag_editor.cpp b/src/tag_editor.cpp
index 517983b9..b1666ee7 100644
--- a/src/tag_editor.cpp
+++ b/src/tag_editor.cpp
@@ -533,6 +533,8 @@ void TagEditor::enterPressed()
(*it)->setTrack(boost::lexical_cast<std::string>(i) + "/" + boost::lexical_cast<std::string>(EditedSongs.size()));
else
(*it)->setTrack(boost::lexical_cast<std::string>(i));
+ // discard other track number tags
+ (*it)->setTrack("", 1);
}
Statusbar::print("Tracks numbered");
return;