Review Request 108989: Fix crash when clicking an action in the Places Panel context menu, and the corresponding device has been removed while the context menu was open

Frank Reininghaus frank78ac at googlemail.com
Mon Feb 18 22:48:02 GMT 2013



> On Feb. 18, 2013, 8:14 p.m., Emmanuel Pescosta wrote:
> > dolphin/src/panels/places/placespanel.cpp, line 279
> > <http://git.reviewboard.kde.org/r/108989/diff/1/?file=114199#file114199line279>
> >
> >     Maybe we should use a switch here?

Thanks for testing it! To my knowledge, the argument of switch (...) must be an int-like type. Won't work for pointers :-(


- Frank


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/108989/#review27662
-----------------------------------------------------------


On Feb. 17, 2013, 10:16 a.m., Frank Reininghaus wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://git.reviewboard.kde.org/r/108989/
> -----------------------------------------------------------
> 
> (Updated Feb. 17, 2013, 10:16 a.m.)
> 
> 
> Review request for Dolphin.
> 
> 
> Description
> -------
> 
> After a context menu action has been clicked which needs to access a device, we have to check if the position of the device is still the same and adjust its index accordingly. More importantly, we also have to verify if the device is still there to prevent a crash.
> 
> 
> This addresses bug 315298.
>     http://bugs.kde.org/show_bug.cgi?id=315298
> 
> 
> Diffs
> -----
> 
>   dolphin/src/panels/places/placespanel.cpp 919f2ed 
> 
> Diff: http://git.reviewboard.kde.org/r/108989/diff/
> 
> 
> Testing
> -------
> 
> Cannot reproduce the crash any more. Could not see any regressions so far.
> 
> 
> Thanks,
> 
> Frank Reininghaus
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.kde.org/mailman/private/kfm-devel/attachments/20130218/9d12caed/attachment.htm>


More information about the kfm-devel mailing list