[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [kdepim] mailcommon: in setCollectionFullPath(), don't try to get the fullCollectionPath
From:       Allen Winter <winter () kde ! org>
Date:       2012-01-31 23:02:49
Message-ID: 20120131230249.6BBD0A60A6 () git ! kde ! org
[Download RAW message or body]

Git commit 85d050bf2bd1bbe8e73ee2775a6b0248cdc746dc by Allen Winter.
Committed on 01/02/2012 at 00:01.
Pushed by winterz into branch 'master'.

in setCollectionFullPath(), don't try to get the fullCollectionPath
from the Akonadi::Collection specified unless we have collectionModel
in the kernel.

BUG: 292617
MERGE: 4.8
FIXED-IN: 4.8.1

M  +4    -2    mailcommon/folderrequester.cpp

http://commits.kde.org/kdepim/85d050bf2bd1bbe8e73ee2775a6b0248cdc746dc

diff --git a/mailcommon/folderrequester.cpp b/mailcommon/folderrequester.cpp
index 01c84a6..57c8c9d 100644
--- a/mailcommon/folderrequester.cpp
+++ b/mailcommon/folderrequester.cpp
@@ -104,9 +104,11 @@ Akonadi::Collection FolderRequester::collection() const
   return mCollection;
 }
 =

-void FolderRequester::setCollectionFullPath( const Akonadi::Collection&col=
 )
+void FolderRequester::setCollectionFullPath( const Akonadi::Collection &co=
l )
 {
-  edit->setText( Util::fullCollectionPath( col ) );
+  if ( KernelIf->collectionModel() ) {
+    edit->setText( Util::fullCollectionPath( col ) );
+  }
 }
 =

 //------------------------------------------------------------------------=
-----
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic