Like the comment says, prevent double-connections after creating the groupware folders

svn path=/branches/proko2/kdepim/; revision=327038
wilder-work
David Faure 22 years ago
parent 8a29ba0d92
commit 5bbc24450a
  1. 11
      kmailicalifaceimpl.cpp

@ -1309,8 +1309,19 @@ void KMailICalIfaceImpl::readConfig()
// Bad hack
connect( mNotes, SIGNAL( changed() ), this, SLOT( slotRefreshNotes() ) );
kdDebug() << k_funcinfo << "mCalendar=" << mCalendar << " " << mCalendar->location() << endl;
kdDebug() << k_funcinfo << "mNotes=" << mNotes << " " << mNotes->location() << endl;
// If we just created them, they might have been registered as extra folders temporarily.
// -> undo that.
mExtraFolders.remove( mCalendar->location() );
mExtraFolders.remove( mTasks->location() );
mExtraFolders.remove( mJournals->location() );
mExtraFolders.remove( mContacts->location() );
mExtraFolders.remove( mNotes->location() );
// Make KOrganizer re-read everything
slotRefresh( "Calendar" );
slotRefresh( "Task" );

Loading…
Cancel
Save