From kde-commits Wed Jul 13 01:24:21 2005 From: Daniel Teske Date: Wed, 13 Jul 2005 01:24:21 +0000 To: kde-commits Subject: KDE/kdelibs/kdeui Message-Id: <1121217861.800086.23099.nullmailer () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=112121787720377 SVN commit 434125 by teske: Fix a crash in keditbookmarks. keditbookmarks deletes and recreates all listview items in repsonse to the done signal, so by the time i was accessed it was already deleted. And move the setFocus() line to a better place. M +2 -2 klistview.cpp --- trunk/KDE/kdelibs/kdeui/klistview.cpp #434124:434125 @@ -369,10 +369,10 @@ QListViewItem *i=item; col=0; item=0; - hide(); // will call focusOutEvent, that's why we set item=0 before + p->setFocus();// will call focusOutEvent, that's why we set item=0 before + hide(); if (commit) emit done(i,c); - i->listView()->setFocus(); } }