From 900420630db8f1c833b96c771409f08b62b45e5e Mon Sep 17 00:00:00 2001 From: Florian Geyer Date: Tue, 17 Apr 2012 00:22:44 +0200 Subject: [PATCH] Fix checking if database has a key. --- src/gui/DatabaseWidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/DatabaseWidget.cpp b/src/gui/DatabaseWidget.cpp index f9893bc15..9649542ba 100644 --- a/src/gui/DatabaseWidget.cpp +++ b/src/gui/DatabaseWidget.cpp @@ -161,7 +161,7 @@ void DatabaseWidget::updateMasterKey(bool accepted) m_db->setKey(m_changeMasterKeyWidget->newMasterKey()); } - else if (m_db->hasKey()) { + else if (!m_db->hasKey()) { Q_EMIT closeRequest(); return; }