Commit 6391a83e authored by Rafael Fernández López's avatar Rafael Fernández López
Browse files

Fix memory problem, thanks to Holger Freyther for pointing out

CCMAIL: zecke@selfish.org
CCMAIL: peter.penz@gmx.at

svn path=/trunk/KDE/kdebase/apps/; revision=678434
parent 0fc1b4bc
......@@ -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;
......
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