Logo Search packages:      
Sourcecode: kmess version File versions

void EmoticonManager::disconnected (  )  [slot]

Unload the custom emoticon theme of the current account

Definition at line 139 of file emoticonmanager.cpp.

References EmoticonTheme::saveTheme().

{
#ifdef KMESSDEBUG_EMOTICONS_GENERAL
  kDebug() << "Destroying custom emoticon theme.";
#endif

  // Only save the theme when the account is not temporary
  if( shouldSaveTheme_ )
  {
    customTheme_->saveTheme();
  }
#ifdef KMESSDEBUG_EMOTICONS_GENERAL
  else
  {
    // NOTE If a guest user adds emoticons, there will be its folder with the relative images.
    // I don't delete nor move them, since it may be a registered account which, for once, has
    // been made not to remember changes.
    kDebug() << "Guest account - do not save the theme.";
  }
#endif
}


Generated by  Doxygen 1.6.0   Back to index