Merge branch 'release/2.1.3' into develop

This commit is contained in:
Janek Bevendorff 2017-03-01 23:37:14 +01:00
commit 93c212f28d
No known key found for this signature in database
GPG key ID: CFEC2F6850BFFA53
9 changed files with 15 additions and 11 deletions

View file

@ -166,7 +166,7 @@ void DatabaseTabWidget::openDatabase(const QString& fileName, const QString& pw,
msgBox.setIcon(QMessageBox::Question);
msgBox.addButton(QMessageBox::Yes);
msgBox.addButton(QMessageBox::No);
auto readOnlyButton = msgBox.addButton(tr("Open read-only"), QMessageBox::AcceptRole);
auto readOnlyButton = msgBox.addButton(tr("Open read-only"), QMessageBox::NoRole);
msgBox.setDefaultButton(readOnlyButton);
msgBox.setEscapeButton(QMessageBox::No);
auto result = msgBox.exec();