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	Thu Oct 17 12:32:28 2013 -0400
+++ b/libgui/src/main-window.cc	Thu Oct 17 12:50:17 2013 -0400
@@ -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