[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE_3_2_BRANCH: kdepim/kmail
From: Carsten Burghardt <cb () magic-shop ! de>
Date: 2004-02-07 19:09:15
Message-ID: 20040207190915.445FE9026 () office ! kde ! org
[Download RAW message or body]
CVS commit by burghard:
Only make subscription items checkable that are actually selectable.
Occurs with cyrus altnamespace and shared folders.
CCMAIL: 74272-done@bugs.kde.org
M +7 -5 subscriptiondialog.cpp 1.10.2.1
--- kdepim/kmail/subscriptiondialog.cpp #1.10:1.10.2.1
@@ -126,13 +126,15 @@ void SubscriptionDialog::slotListDirecto
{
KGroupInfo info(mSubfolderNames[i]);
- if (mSubfolderNames[i].upper() == "INBOX")
+ if ( mSubfolderNames[i].upper() == "INBOX" )
info.name = i18n("inbox");
info.subscribed = false;
info.path = mSubfolderPaths[i];
- // create a new checkable item
- if (parent)
- item = new GroupItem(parent, info, this, true);
+ // create a new item
+ // only checkable when the folder is selectable
+ bool checkable = ( mSubfolderMimeTypes[i] == "inode/directory" ) ? false : true;
+ if ( parent )
+ item = new GroupItem(parent, info, this, checkable);
else
- item = new GroupItem(folderTree(), info, this, true);
+ item = new GroupItem(folderTree(), info, this, checkable);
}
if ( item ) // reset
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic