Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
David Planella
juk
Commits
a16a52f3
Commit
a16a52f3
authored
Mar 06, 2009
by
Michael Pyne
Browse files
Fix handling of empty tags in the file renamer, that have prefix/suffix values.
svn path=/trunk/KDE/kdemultimedia/juk/; revision=935735
parent
27e2d387
Changes
1
Hide whitespace changes
Inline
Side-by-side
categoryreaderinterface.cpp
View file @
a16a52f3
...
@@ -25,8 +25,20 @@ QString CategoryReaderInterface::value(const CategoryID &category) const
...
@@ -25,8 +25,20 @@ QString CategoryReaderInterface::value(const CategoryID &category) const
if
(
category
.
category
==
Track
)
if
(
category
.
category
==
Track
)
value
=
fixupTrack
(
value
,
category
.
categoryNumber
).
trimmed
();
value
=
fixupTrack
(
value
,
category
.
categoryNumber
).
trimmed
();
if
(
value
.
isEmpty
()
&&
emptyAction
(
category
)
==
TagRenamerOptions
::
UseReplacementValue
)
if
(
value
.
isEmpty
())
{
value
=
emptyText
(
category
);
switch
(
emptyAction
(
category
))
{
case
TagRenamerOptions
::
UseReplacementValue
:
value
=
emptyText
(
category
);
break
;
case
TagRenamerOptions
::
IgnoreEmptyTag
:
return
QString
();
default:
// No extra action needed.
break
;
}
}
return
prefix
(
category
)
+
value
+
suffix
(
category
);
return
prefix
(
category
)
+
value
+
suffix
(
category
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment