Skip to content

Commit

Permalink
Add status message when opening a file from the recent file list
Browse files Browse the repository at this point in the history
In this way, using the Ctrl+n being n a number gives a hint of what has
been done.

See issue #2363
  • Loading branch information
mgrojo committed Aug 22, 2020
1 parent 2d7610f commit 4dfe4f7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/MainWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1534,7 +1534,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));
}
}

Expand Down

0 comments on commit 4dfe4f7

Please sign in to comment.