dilfridge 15/07/04 11:05:33 Added: kpartsplugin-20120723-segfault.patch Log: Revision bump, add patch by Mario Kicherer to fix bug 553318 (Portage version: 2.2.20/cvs/Linux x86_64, signed Manifest commit with key 84AD142F)
Revision Changes Path 1.1 www-plugins/kpartsplugin/files/kpartsplugin-20120723-segfault.patch file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-plugins/kpartsplugin/files/kpartsplugin-20120723-segfault.patch?rev=1.1&view=markup plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-plugins/kpartsplugin/files/kpartsplugin-20120723-segfault.patch?rev=1.1&content-type=text/plain Index: kpartsplugin-20120723-segfault.patch =================================================================== commit e883f236c476830fec2306b6b4ad90ec27f643a1 Author: Mario Kicherer <kiche...@kit.edu> Date: Fri Jun 26 11:34:21 2015 +0200 fix crash after kpart selection dialog diff --git a/src/kpartsplugin.cpp b/src/kpartsplugin.cpp index a9ee9df..56c4aa4 100644 --- a/src/kpartsplugin.cpp +++ b/src/kpartsplugin.cpp @@ -120,8 +120,8 @@ public: dlg.exec(); rememberChoice = dlg.checkBoxRemember->checkState() == Qt::Checked; /// fetch first (and only) selected item in list - QList<QListWidgetItem *>::ConstIterator it(dlg.listWidget->selectedItems().constBegin()); - return (*it)->text(); + QList<QListWidgetItem *> it(dlg.listWidget->selectedItems()); + return it.at(0)->text(); } };