Logo Search packages:      
Sourcecode: kmess version File versions

void AccountsManagerPage::configureAccount (  )  [slot]

Open the currently selected account's settings

Definition at line 109 of file accountsmanagerpage.cpp.

References AccountsManager::getAccountByHandle(), and AccountsManager::showAccountSettings().

Referenced by AccountsManagerPage().

{
  if( accountsList_->selectedItems().isEmpty() )
  {
    return;
  }

  QListWidgetItem * selection = accountsList_->selectedItems().first();
  QString accountHandle( selection->data( Qt::UserRole ).toString() );

#ifdef KMESSDEBUG_SETTINGSDIALOG
  kDebug() << "Opening Account Settings for account" << accountHandle << ".";
#endif

  Account *account = accountsManager_->getAccountByHandle( accountHandle );
  accountsManager_->showAccountSettings( account, window() );
}


Generated by  Doxygen 1.6.0   Back to index