Skip to content

Commit 4dfe4f7

Browse files
committed
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
1 parent 2d7610f commit 4dfe4f7

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/MainWindow.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1534,7 +1534,11 @@ void MainWindow::openRecentFile()
15341534
read_only = true;
15351535
}
15361536

1537-
fileOpen(file, false, read_only);
1537+
if(fileOpen(file, false, read_only))
1538+
if(read_only)
1539+
ui->statusbar->showMessage(tr("Opened '%1' in read-only mode from recent file list").arg(file));
1540+
else
1541+
ui->statusbar->showMessage(tr("Opened '%1' from recent file list").arg(file));
15381542
}
15391543
}
15401544

0 commit comments

Comments
 (0)