Skip to content

Commit

Permalink
Show database name when doing association
Browse files Browse the repository at this point in the history
  • Loading branch information
varjolintu committed Oct 19, 2019
1 parent f726d75 commit 39bbebd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/browser/BrowserService.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -304,9 +304,10 @@ QString BrowserService::storeKey(const QString& key)
QInputDialog keyDialog;
connect(m_dbTabWidget, SIGNAL(databaseLocked(DatabaseWidget*)), &keyDialog, SLOT(reject()));
keyDialog.setWindowTitle(tr("KeePassXC: New key association request"));
keyDialog.setLabelText(tr("You have received an association request for the above key.\n\n"
keyDialog.setLabelText(tr("You have received an association request for the following database:\n%1\n\n"
"If you would like to allow it access to your KeePassXC database,\n"
"give it a unique name to identify and accept it."));
"give it a unique name to identify and accept it.")
.arg(db->metadata()->name().toHtmlEscaped()));
keyDialog.setOkButtonText(tr("Save and allow access"));
keyDialog.setWindowFlags(keyDialog.windowFlags() | Qt::WindowStaysOnTopHint);
raiseWindow();
Expand Down

0 comments on commit 39bbebd

Please sign in to comment.