Mercurial > hg > octave-nkf
changeset 17771:7690c3477da1
if NEWS file is missing, include expected file name in release notes message
* main-window.cc (main_window::display_release_notes): Include NEWS
file name in message if NEWS file is missing or empty.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Sun, 27 Oct 2013 08:08:17 -0400 |
parents | 4dcbbfaa4e22 |
children | 7900595f1533 |
files | libgui/src/main-window.cc |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/libgui/src/main-window.cc +++ b/libgui/src/main-window.cc @@ -267,10 +267,12 @@ news.append ("</pre>"); } else - news = tr ("The release notes file is empty."); + news = (tr ("The release notes file '%1' is empty.") + . arg (QString::fromStdString (news_file))); } else - news = tr ("The release notes file cannot be read."); + news = (tr ("The release notes file '%1' cannot be read.") + . arg (QString::fromStdString (news_file))); QWidget *w = new QWidget;