show path when asking for password
This commit is contained in:
parent
fb5f30a5ac
commit
2d8c94855c
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue