[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdepim/kaddressbook
From: Tobias Koenig <tokoe () kde ! org>
Date: 2010-06-23 17:33:58
Message-ID: 20100623173358.47C51AC8DA () svn ! kde ! org
[Download RAW message or body]
SVN commit 1141863 by tokoe:
Fix the enable/disable of 'New Contact (Group)' actions
M +6 -1 standardcontactactionmanager.cpp
--- trunk/KDE/kdepim/kaddressbook/standardcontactactionmanager.cpp #1141862:1141863
@@ -100,9 +100,14 @@
return false;
const QAbstractItemModel *collectionModel = mCollectionSelectionModel->model();
- return hasWritableCollection( collectionModel->index( 0, 0 ), mimeType );
+ for ( int row = 0; row < collectionModel->rowCount(); ++row ) {
+ if ( hasWritableCollection( collectionModel->index( row, 0, QModelIndex() ), mimeType ) )
+ return true;
}
+ return false;
+ }
+
void updateActions()
{
int itemCount = 0;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic