Fix checking if database has a key.

This commit is contained in:
Florian Geyer 2012-04-17 00:22:44 +02:00 committed by Felix Geyer
parent 26436d764a
commit 900420630d

View File

@ -161,7 +161,7 @@ void DatabaseWidget::updateMasterKey(bool accepted)
m_db->setKey(m_changeMasterKeyWidget->newMasterKey()); m_db->setKey(m_changeMasterKeyWidget->newMasterKey());
} }
else if (m_db->hasKey()) { else if (!m_db->hasKey()) {
Q_EMIT closeRequest(); Q_EMIT closeRequest();
return; return;
} }