summaryrefslogtreecommitdiffstats
path: root/juk/tageditor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'juk/tageditor.cpp')
-rw-r--r--juk/tageditor.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/juk/tageditor.cpp b/juk/tageditor.cpp
index 7862be71..c0b0a183 100644
--- a/juk/tageditor.cpp
+++ b/juk/tageditor.cpp
@@ -44,6 +44,8 @@
#undef KeyRelease
+#define TStringToTQString(s) TQString::fromUtf8((s).toCString(true))
+
using namespace ActionCollection;
class FileNameValidator : public TQValidator
@@ -403,7 +405,7 @@ void TagEditor::updateCollection()
TagLib::StringList genres = TagLib::ID3v1::genreList();
for(TagLib::StringList::ConstIterator it = genres.begin(); it != genres.end(); ++it)
- genreHash.insert(TStringToQString((*it)));
+ genreHash.insert(TStringToTQString((*it)));
m_genreList = genreHash.values();
m_genreList.sort();
@@ -436,7 +438,7 @@ void TagEditor::readConfig()
TagLib::StringList genres = TagLib::ID3v1::genreList();
for(TagLib::StringList::ConstIterator it = genres.begin(); it != genres.end(); ++it)
- m_genreList.append(TStringToQString((*it)));
+ m_genreList.append(TStringToTQString((*it)));
m_genreList.sort();
m_genreBox->clear();