Mercurial > hg > octave-nkf
changeset 17674:dd125b5e8090
handle OCTAVE_HOME substitution for NEWS file (bug #40284)
* main-window.cc (main_window::display_release_notes): Use
Voct_etc_dir, which accounts for OCTAVE_HOME, instead of
OCTAVE_OCTETCDIR.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 17 Oct 2013 12:50:17 -0400 |
parents | 9f6e4e5c2bac |
children | 4e5c17b3294a |
files | libgui/src/main-window.cc |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libgui/src/main-window.cc +++ b/libgui/src/main-window.cc @@ -251,7 +251,9 @@ void main_window::display_release_notes (void) { - display_url_in_window (QUrl ("file://" OCTAVE_OCTETCDIR "/NEWS")); + std::string news_file = "file://" + Voct_etc_dir + "/NEWS"; + + display_url_in_window (QUrl (QString::fromStdString (news_file))); } void