File KeyFileHandling.patch of Package keepassx

Index: keepassx-2.0-alpha6/src/gui/DatabaseOpenWidget.cpp
===================================================================
--- keepassx-2.0-alpha6.orig/src/gui/DatabaseOpenWidget.cpp
+++ keepassx-2.0-alpha6/src/gui/DatabaseOpenWidget.cpp
@@ -87,7 +87,12 @@ void DatabaseOpenWidget::enterKey(const
         m_ui->editPassword->setText(pw);
     }
     if (!keyFile.isEmpty()) {
-        m_ui->checkKeyFile->setText(keyFile);
+      // beware, this is a QCheckBox
+      // m_ui->checkKeyFile->setText(keyFile);
+      // changes the label of the check box
+      m_ui->comboKeyFile->clear();
+      m_ui->comboKeyFile->addItem(keyFile);
+      m_ui->checkKeyFile->setChecked(true);
     }
 
     openDatabase();
openSUSE Build Service is sponsored by