Commit 903f0928 authored by Urs Fleisch's avatar Urs Fleisch
Browse files

enable setting of tag 2 track number with format "track/total number of tracks"

parent 0256d99d
......@@ -874,8 +874,11 @@ bool TaggedFile::setFrameV2(const Frame& frame)
} else if (frame.isEmpty()) {
n = 0;
} else {
n = frame.m_value.toInt();
}
int slashPos = frame.m_value.QCM_indexOf("/");
n = slashPos == -1 ?
frame.m_value.toInt() :
frame.m_value.left(slashPos).toInt();
}
}
switch (frame.m_type) {
case Frame::FT_Album:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment