Use the emit keyword correctly

This commit is contained in:
Josef Vitu 2017-09-24 11:44:17 +02:00 committed by Jonathan White
parent 522e132200
commit 852e89c0df
2 changed files with 4 additions and 4 deletions

View File

@ -63,7 +63,7 @@ void CloneDialog::cloneEntry()
Entry* entry = m_entry->clone(flags); Entry* entry = m_entry->clone(flags);
entry->setGroup(m_entry->group()); entry->setGroup(m_entry->group());
emit m_parent->refreshSearch(); m_parent->refreshSearch();
close(); close();
} }

View File

@ -56,7 +56,7 @@ void CsvImportWizard::load(const QString& filename, Database* database)
void CsvImportWizard::keyFinished(bool accepted) void CsvImportWizard::keyFinished(bool accepted)
{ {
if (!accepted) { if (!accepted) {
emit(importFinished(false)); emit importFinished(false);
return; return;
} }
@ -68,11 +68,11 @@ void CsvImportWizard::keyFinished(bool accepted)
if (!result) { if (!result) {
MessageBox::critical(this, tr("Error"), tr("Unable to calculate master key")); MessageBox::critical(this, tr("Error"), tr("Unable to calculate master key"));
emit(importFinished(false)); emit importFinished(false);
} }
} }
void CsvImportWizard::parseFinished(bool accepted) void CsvImportWizard::parseFinished(bool accepted)
{ {
emit(importFinished(accepted)); emit importFinished(accepted);
} }