From: | "Andreas Huettel (dilfridge)" <dilfridge@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in www-plugins/kpartsplugin/files: kpartsplugin-20120723-segfault.patch |
Date: | Sat, 04 Jul 2015 11:05:39 |
Message-Id: | 20150704110533.C9B8C752@oystercatcher.gentoo.org |
1 | dilfridge 15/07/04 11:05:33 |
2 | |
3 | Added: kpartsplugin-20120723-segfault.patch |
4 | Log: |
5 | Revision bump, add patch by Mario Kicherer to fix bug 553318 |
6 | |
7 | (Portage version: 2.2.20/cvs/Linux x86_64, signed Manifest commit with key 84AD142F) |
8 | |
9 | Revision Changes Path |
10 | 1.1 www-plugins/kpartsplugin/files/kpartsplugin-20120723-segfault.patch |
11 | |
12 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-plugins/kpartsplugin/files/kpartsplugin-20120723-segfault.patch?rev=1.1&view=markup |
13 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-plugins/kpartsplugin/files/kpartsplugin-20120723-segfault.patch?rev=1.1&content-type=text/plain |
14 | |
15 | Index: kpartsplugin-20120723-segfault.patch |
16 | =================================================================== |
17 | commit e883f236c476830fec2306b6b4ad90ec27f643a1 |
18 | Author: Mario Kicherer <kicherer@×××.edu> |
19 | Date: Fri Jun 26 11:34:21 2015 +0200 |
20 | |
21 | fix crash after kpart selection dialog |
22 | |
23 | diff --git a/src/kpartsplugin.cpp b/src/kpartsplugin.cpp |
24 | index a9ee9df..56c4aa4 100644 |
25 | --- a/src/kpartsplugin.cpp |
26 | +++ b/src/kpartsplugin.cpp |
27 | @@ -120,8 +120,8 @@ public: |
28 | dlg.exec(); |
29 | rememberChoice = dlg.checkBoxRemember->checkState() == Qt::Checked; |
30 | /// fetch first (and only) selected item in list |
31 | - QList<QListWidgetItem *>::ConstIterator it(dlg.listWidget->selectedItems().constBegin()); |
32 | - return (*it)->text(); |
33 | + QList<QListWidgetItem *> it(dlg.listWidget->selectedItems()); |
34 | + return it.at(0)->text(); |
35 | } |
36 | |
37 | }; |