Review Request: Do not crash when pasting content to projects view

Kevin Funk krf at gmx.de
Wed Nov 7 08:16:25 UTC 2012


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

Review request for KDevelop and Niko Sams.


Description
-------

Do not crash when pasting content to projects view

KDevelop crashed when pasting content in case a file in the project tree
view was selected. This commit fixes this.

BT:
10 0x00007fb588c9dab4 in qt_assert (assertion=0x7fb562700528
"destItem->folder()", file=0x7fb5627005b0
"/home/krf/devel/src/kdevplatform/plugins/projectmanagerview/projectmanagerviewplugin.cpp",
line=679) at /home/krf/devel/src/qt/src/corelib/global/qglobal.cpp:2013
11 0x00007fb5626f1a7f in ProjectManagerViewPlugin::pasteFromContextMenu
(this=<optimized out>) at
/home/krf/devel/src/kdevplatform/plugins/projectmanagerview/projectmanagerviewplugin.cpp:679
12 0x00007fb5626f68d6 in ProjectManagerView::eventFilter
(this=0x7ee6620, obj=0x7ee3a90, event=<optimized out>) at
/home/krf/devel/src/kdevplatform/plugins/projectmanagerview/projectmanagerview.cpp:204
13 0x00007fb588de52d1 in
QCoreApplicationPrivate::sendThroughObjectEventFilters (this=0x916c10,
receiver=0x7ee3a90, event=0x7fff22889d00) at
/home/krf/devel/src/qt/src/corelib/kernel/qcoreapplication.cpp:1056
(...)


Diffs
-----

  plugins/projectmanagerview/projectmanagerviewplugin.cpp 90c3cf99d7d0c5c47f5e86ea58b942d379a9ee81 

Diff: http://git.reviewboard.kde.org/r/107233/diff/


Testing
-------


Thanks,

Kevin Funk

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20121107/5b8333c8/attachment.html>


More information about the KDevelop-devel mailing list