void AccountModifyDlg::updateBlockedContacts(const PrivacyList& l) { privacyInitialized = true; privacyModel.setList(l); lb_customPrivacy->setVisible(!l.onlyBlockItems()); setPrivacyTabEnabled(true); }
void AccountModifyDlg::updatePrivacyTab() { if (tab_main->currentWidget() == tab_privacy) { if (pa && pa->loggedIn()) { if (!privacyInitialized) { lb_privacyStatus->setText(tr("Retrieving blocked contact list ...")); setPrivacyTabEnabled(false); pa->privacyManager()->getDefaultList(); } //else { // setPrivacyTabEnabled(true); //} } else { lb_privacyStatus->setText(tr("You are not connected.")); privacyInitialized = false; setPrivacyTabEnabled(false); } } }
void AccountModifyDlg::getDefaultList_error() { privacyInitialized = true; lb_privacyStatus->setText(tr("Your server does not support blocking.")); setPrivacyTabEnabled(false); }