From kde-commits Tue Jan 06 20:53:56 2009 From: Thomas McGuire Date: Tue, 06 Jan 2009 20:53:56 +0000 To: kde-commits Subject: KDE/kdepim/akonadi/clients/akonadiconsole Message-Id: <1231275236.825783.22138.nullmailer () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=123127526502987 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 #include +#include + #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(); }