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

List:       kde-commits
Subject:    KDE_3_3_BRANCH: kdepim/kresources/imap/kcal
From:       Bo Thorsen <bo () sonofthor ! dk>
Date:       2004-09-29 8:13:20
Message-ID: 20040929081320.F06C3126E1 () office ! kde ! org
[Download RAW message or body]

CVS commit by thorsen: 

Fix the case where no writable folders are present, or the user cancelling \
the subresource chooser


  M +9 -0      resourceimap.cpp   1.30.2.1


--- kdepim/kresources/imap/kcal/resourceimap.cpp  #1.30:1.30.2.1
@@ -229,4 +229,7 @@ bool ResourceIMAP::addEvent( Event *anEv
   if ( subresource.isEmpty() )
     resource = findWritableResource( mEventResources, "Calendar" );
+  if ( resource.isEmpty() )
+    return false;
+
   mUidmap[ uid ] = resource;
 
@@ -307,4 +310,7 @@ bool ResourceIMAP::addTodo( Todo *todo, 
   if ( subresource.isEmpty() )
     resource = findWritableResource( mTaskResources, "Task" );
+  if ( resource.isEmpty() )
+    return false;
+
   mUidmap[ uid ] = resource;
 
@@ -367,4 +373,7 @@ bool ResourceIMAP::addJournal( Journal *
   if ( subresource.isEmpty() )
     resource = findWritableResource( mJournalResources, "Journal" );
+  if ( resource.isEmpty() )
+    return false;
+
   mUidmap[ uid ] = resource;
 


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

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