Skip to content

Commit

Permalink
- Fix OMNotebook search path for OMNotebookHelp.onb (search in $OPENM…
Browse files Browse the repository at this point in the history
…ODELICAHOME/share/omnotebook/ instead of $OPENMODELICA/bin/)

git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@6359 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
sjoelund committed Oct 13, 2010
1 parent 1556b95 commit f4ea452
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
1 change: 1 addition & 0 deletions OMNotebook/OMNotebookQT4/Makefile.unix.in
Expand Up @@ -38,6 +38,7 @@ build: $(NAME)
mkdir -p $$DIRS) && \
cd ../DrModelica/ && \
find . -name \*.onb -exec cp {} $(builddir_share)/omnotebook/drmodelica/{} \;)
mv $(builddir_share)/omnotebook/drmodelica/OMNotebookHelp.onb $(builddir_share)/omnotebook/

Makefile.unix: Makefile.unix.in
cd $(top_builddir); ./config.status
Expand Down
7 changes: 3 additions & 4 deletions OMNotebook/OMNotebookQT4/notebook.cpp
Expand Up @@ -2661,10 +2661,9 @@ namespace IAEX
if( help.isEmpty() )
QMessageBox::critical( 0, "OpenModelica Error", "Could not find environment variable OPENMODELICAHOME; OMNotebook will therefore not work correctly" );

if( help.endsWith("/") || help.endsWith( "\\") )
help += "bin/";
else
help += "/bin/";
if( !help.endsWith("/") && !help.endsWith( "\\") )
help += "/";
help += "share/omnotebook/";

QString helpFile = "OMNotebookHelp.onb";
dir.setPath( help );
Expand Down

0 comments on commit f4ea452

Please sign in to comment.