]> 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>
Sun, 30 Dec 2012 19:57:48 +0000 (20:57 +0100)
commited4644bd875bce2bb797a96652b4aced9eb75976
tree7c2a93aba65b2a4d7b850339422d6f6e54745b74
parentc473003fca026301dbe7db92e82cfc474e001a52
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.
src/kitemviews/kfileitemmodel.cpp