[Bug 261069] deskutils/korganizer: Crashes with Segmentation fault (11) edit existing calendar entry

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon Jan 24 00:32:12 GMT 2022


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=261069

--- Comment #6 from Adriaan de Groot <adridg at freebsd.org> ---
I have a fix, but no energy this evening to upstream it and add it to ports. It
goes in kldap, not korganizer itself, if you want to try it yourself.

--- src/widgets/ldapclient.cpp
+++ src/widgets/ldapclient.cpp
@@ -31,9 +31,11 @@ public:

     ~LdapClientPrivate()
     {
-        q->cancelQuery();
+        cancelQuery();
     }

+    void cancelQuery();
+    
     void startParseLDIF();
     void parseLDIF(const QByteArray &data);
     void endParseLDIF();
@@ -133,12 +135,17 @@ void LdapClient::startQuery(const QString &filter)

 void LdapClient::cancelQuery()
 {
-    if (d->mJob) {
-        d->mJob->kill();
-        d->mJob = nullptr;
+    d->cancelQuery();
+}
+
+void LdapClient::LdapClientPrivate::cancelQuery()
+{
+    if (mJob) {
+        mJob->kill();
+        mJob = nullptr;
     }

-    d->mActive = false;
+    mActive = false;
 }

 void LdapClient::LdapClientPrivate::slotData(KIO::Job *, const QByteArray
&data)

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the kde-freebsd mailing list