]> cloud.milkyroute.net Git - dolphin.git/commit
Fix crash when browsing bluetooth device.
authorMichael Jansen <kde@michael-jansen.biz>
Sun, 30 Dec 2012 19:56:59 +0000 (20:56 +0100)
committerMichael Jansen <kde@michael-jansen.biz>
Thu, 3 Jan 2013 16:14:30 +0000 (17:14 +0100)
commitfe1e3f240a09c18c721f78713e3c359666c42fed
treeef346d58a3491b35bd69ea372cdb6737cfce992d
parentbf202f3931c804af1c03bd958a8e946bab8b4b52
Fix crash when browsing bluetooth device.

When trying to browse a N900 it crashed here because pathA was empty. Which
lead to index = maxIndex beeing -1 and pathA.at(index) crashing.

Reorder the while condition to prevent that courtesy of tsdgeos.

(cherry picked from commit f0c90a47de3f59e4a98932ae6f0499921d9aa899)
src/kitemviews/kfileitemmodel.cpp