diff options
Diffstat (limited to 'src/dolphinitemcategorizer.cpp')
| -rw-r--r-- | src/dolphinitemcategorizer.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/dolphinitemcategorizer.cpp b/src/dolphinitemcategorizer.cpp index 88e6733c9..38d0e2c16 100644 --- a/src/dolphinitemcategorizer.cpp +++ b/src/dolphinitemcategorizer.cpp @@ -114,7 +114,8 @@ QString DolphinItemCategorizer::categoryForItem(const QModelIndex& index, { bool validCategory = false; - const QChar* currA = data.toString().toUpper().unicode(); // iterator over a + const QString str(data.toString().toUpper()); + const QChar* currA = str.unicode(); while (!currA->isNull() && !validCategory) { if (currA->isLetter()) validCategory = true; |
