[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdepimlibs/akonadi
From: Till Adam <adam () kde ! org>
Date: 2010-12-31 13:28:21
Message-ID: 20101231132821.BB710AC8AE () svn ! kde ! org
[Download RAW message or body]
SVN commit 1210455 by tilladam:
Don't keep re-reading the id of the default resource from a config file.
It's slow, you see, and very unlikely to change.
M +2 -0 specialcollections.cpp
--- trunk/KDE/kdepimlibs/akonadi/specialcollections.cpp #1210454:1210455
@@ -62,11 +62,13 @@
QString SpecialCollectionsPrivate::defaultResourceId() const
{
+ if ( mDefaultResourceId.isEmpty() ) {
mSettings->readConfig();
const KConfigSkeletonItem *item = mSettings->findItem( QLatin1String( "DefaultResourceId" ) );
Q_ASSERT( item );
mDefaultResourceId = item->property().toString();
+ }
return mDefaultResourceId;
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic