show path when asking for password

This commit is contained in:
Martchus 2015-12-19 01:34:12 +01:00
parent fb5f30a5ac
commit 2d8c94855c
1 changed files with 1 additions and 1 deletions

View File

@ -443,7 +443,7 @@ bool MainWindow::openFile(const QString &path)
if(m_file.isEncryptionUsed()) {
EnterPasswordDialog pwDlg(this);
pwDlg.setWindowTitle(QApplication::applicationName());
pwDlg.setInstruction(tr("Enter the password to open the file"));
pwDlg.setInstruction(tr("Enter the password to open the file \"%1\"").arg(path));
pwDlg.setPasswordRequired(true);
switch(pwDlg.exec()) {
case QDialog::Accepted: