void MenuManager::unRegister( const MIMenuID & id ) //------------------------------------------------- { bool found; enableMenu( id, FALSE ); found = (bool) _receivers->remove( id ); ASSERTION( found ); }
void KeyhoteeMainWindow::addContact() { if (checkSaving()) { connect(ui->new_contact, &ContactView::savedNewContact, this, &KeyhoteeMainWindow::onSavedNewContact); connect(ui->new_contact, &ContactView::savedNewContact, ui->contacts_page, &ContactsTable::onSavedNewContact); connect(ui->new_contact, &ContactView::canceledNewContact, this, &KeyhoteeMainWindow::onCanceledNewContact); connect(ui->new_contact, &ContactView::canceledNewContact, ui->contacts_page, &ContactsTable::onCanceledNewContact); enableMenu(false); ui->new_contact->setAddingNewContact(true); ui->new_contact->setContact(Contact()); ui->contacts_page->addNewContact(*ui->new_contact); ui->widget_stack->setCurrentWidget(ui->contacts_page); //ui->widget_stack->setCurrentWidget( ui->new_contact); } }