Commit 49dc080f authored by Volker Krause's avatar Volker Krause
Browse files

I'm too lazy to expand my 4 levels of Kolab addressbooks after every

restart, so let's use the ETM state saver here.

svn path=/branches/work/akonadi-ports/kdepim/; revision=1015934
parent 89b369e3
......@@ -38,6 +38,7 @@
#include <akonadi/itemview.h>
#include <akonadi/mimetypechecker.h>
#include <akonadi/selectionproxymodel.h>
#include <akonadi/entitytreeviewstatesaver.h>
#include <kaction.h>
#include <kactioncollection.h>
......@@ -185,11 +186,20 @@ MainWidget::MainWidget( KXMLGUIClient *guiClient, QWidget *parent )
mModelColumnManager = new ModelColumnManager( GlobalContactModel::instance()->model(), this );
mModelColumnManager->setWidget( mItemView->header() );
// restore previous state
const KConfigGroup cfg( Settings::self()->config(), "CollectionViewState" );
Akonadi::EntityTreeViewStateSaver *restorer = new Akonadi::EntityTreeViewStateSaver( mCollectionView );
restorer->restoreState( cfg );
KConfigGroup cfg( Settings::self()->config(), "CollectionViewState" );
Akonadi::EntityTreeViewStateSaver saver( mCollectionView );
saver.saveState( cfg );
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment