void CopyCollection::accept() { if (!selectedDatabase()) return; QDialog::accept(); }
void LookupWidget::lookupWord(const QString& word) { results_->setWord(word); if (word.isEmpty()) return; const auto database = selectedDatabase(); if (word.length() >= 3) client_pool_->sendMatch(word, "prefix", database); client_pool_->sendDefine(word, database); }