1 |
jmbsvicetto 09/10/02 23:18:16 |
2 |
|
3 |
Added: libkdepim-4.3.1-ldap_crash.diff |
4 |
Log: |
5 |
Moved updated kdm ebuild from kde-testing overlay to the tree - thanks to Maciej Mrozowski (reavertm). |
6 |
Added patch to supposedly fix LDAP crashes introduced in 4.3.1. |
7 |
(Portage version: 2.2_rc42/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.1 kde-base/libkdepim/files/libkdepim-4.3.1-ldap_crash.diff |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/kde-base/libkdepim/files/libkdepim-4.3.1-ldap_crash.diff?rev=1.1&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/kde-base/libkdepim/files/libkdepim-4.3.1-ldap_crash.diff?rev=1.1&content-type=text/plain |
14 |
|
15 |
Index: libkdepim-4.3.1-ldap_crash.diff |
16 |
=================================================================== |
17 |
diff -u libkdepim/addresseelineedit.cpp libkdepim/addresseelineedit.cpp |
18 |
--- libkdepim/addresseelineedit.cpp (revision 1019119) |
19 |
+++ libkdepim/addresseelineedit.cpp (revision 1019358) |
20 |
@@ -800,7 +800,7 @@ |
21 |
|
22 |
void AddresseeLineEdit::slotLDAPSearchData( const KPIM::LdapResultList &adrs ) |
23 |
{ |
24 |
- if ( s_LDAPLineEdit != this ) { |
25 |
+ if ( adrs.isEmpty() || s_LDAPLineEdit != this ) { |
26 |
return; |
27 |
} |
28 |
|
29 |
@@ -817,7 +817,8 @@ |
30 |
setText( m_previousAddresses + m_searchString ); |
31 |
// only complete again if the user didn't change the selection while |
32 |
// we were waiting; otherwise the completion box will be closed |
33 |
- if ( m_searchString.trimmed() != completionBox()->currentItem()->text().trimmed() ) { |
34 |
+ QListWidgetItem *current = completionBox()->currentItem(); |
35 |
+ if ( !current || m_searchString.trimmed() != current->text().trimmed() ) { |
36 |
doCompletion( m_lastSearchMode ); |
37 |
} |
38 |
} |