]> cloud.milkyroute.net Git - dolphin.git/commit
Fix crash when clicking an action in context menu for a removed device
authorFrank Reininghaus <frank78ac@googlemail.com>
Mon, 18 Feb 2013 22:58:26 +0000 (23:58 +0100)
committerFrank Reininghaus <frank78ac@googlemail.com>
Mon, 18 Feb 2013 22:58:31 +0000 (23:58 +0100)
commit518b53feb43325d5c194fa15118e80ab0729b620
tree1b56de1dd3282a7c544507aad84b89be0a8a9be7
parent6938241ebce940bc55aa4f0bb3e77361a1a0211a
Fix crash when clicking an action in context menu for a removed device

Devices can be added and removed while the context menu is open.
Sfter an action has clicked that needs to access a device, we therefore
have to check if its position in the model has changed, and more
importantly, if it is still there at all in order to prevent a crash.

BUG: 315298
FIXED-IN: 4.10.1
REVIEW: 108989
src/panels/places/placespanel.cpp