[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdepim/akonadi/clients/akonadiconsole
From:       Thomas McGuire <mcguire () kde ! org>
Date:       2009-01-06 20:53:56
Message-ID: 1231275236.825783.22138.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 906774 by tmcguire:

Don't get stuck when viewing incidences.


 M  +8 -0      main.cpp  


--- trunk/KDE/kdepim/akonadi/clients/akonadiconsole/main.cpp #906773:906774
@@ -23,6 +23,8 @@
 #include <kapplication.h>
 #include <kcmdlineargs.h>
 
+#include <kabc/stdaddressbook.h>
+
 #include "mainwindow.h"
 
 int main( int argc, char **argv )
@@ -45,5 +47,11 @@
   MainWindow *window = new MainWindow;
   window->show();
 
+  // ### HACK HACK HACK
+  // Load the addressbook now, since loading the addressbook with Akonadi resources uses
+  // subeventloops, which have great potential to mess things up (for example akonadiconsole
+  // would cease to load items after viewing a calendar item which has attendees).
+  KABC::StdAddressBook::self();
+
   return app.exec();
 }
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic