void CopyCollection::accept()
    {
        if (!selectedDatabase())
            return;

        QDialog::accept();
    }
Exemple #2
0
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);
}