Add status message when opening a file from the recent file list

In this way, using the Ctrl+n being n a number gives a hint of what has
been done.

See issue #2363
This commit is contained in:
mgrojo
2020-08-11 14:45:29 +02:00
parent 9f927a18c5
commit d5b9d80959

View File

@@ -1585,7 +1585,11 @@ void MainWindow::openRecentFile()
read_only = true;
}
fileOpen(file, false, read_only);
if(fileOpen(file, false, read_only))
if(read_only)
ui->statusbar->showMessage(tr("Opened '%1' in read-only mode from recent file list").arg(file));
else
ui->statusbar->showMessage(tr("Opened '%1' from recent file list").arg(file));
}
}