[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdepimlibs/akonadi/kmime
From: Till Adam <adam () kde ! org>
Date: 2009-06-17 21:36:54
Message-ID: 1245274614.828740.28789.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 983292 by tilladam:
Don't manipulate the columns in the no-content or invalid collection cases either.
M +4 -2 messagemodel.cpp
--- trunk/KDE/kdepimlibs/akonadi/kmime/messagemodel.cpp #983291:983292
@@ -143,9 +143,11 @@
QVariant MessageModel::headerData( int section, Qt::Orientation orientation, int role ) const
{
- if ( !collection().contentMimeTypes().contains( QLatin1String("message/rfc822") ) ) {
+
+ if ( collection().isValid()
+ && !collection().contentMimeTypes().contains( QLatin1String("message/rfc822") )
+ && collection().contentMimeTypes() != QStringList( QLatin1String("inode/directory") ) )
return QVariant();
- }
if ( orientation == Qt::Horizontal && role == Qt::DisplayRole ) {
switch ( section ) {
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic