Feature request #615

Patch for help_viewer finding right directories.

Added by Magnus Homann over 17 years ago. Updated over 15 years ago.

Status:Closed
Priority:Low
Assignee:Tim Sutton
Category:-
Pull Request or Patch supplied: Resolution:fixed
Easy fix?:No Copied to github as #:10674

Description

The logic for finding /share/qgis etc is kept in qgsapplication.cpp. qgis_help has previously not used that, which leads to confusions (and errors). This patch uses the same logic. As the source files are included directly, no dependency on libqgis_* is created.

The purpose is to find the correct qgis_*.ts and the correct path to the context help files.

help_viewer_i18n.diff Magnifier - Adjusted levels up to find translations. (2.4 KB) Magnus Homann, 2007-02-25 02:00 PM

History

#1 Updated by Magnus Homann over 17 years ago

Tested on win32 and linux. Bundled linux will not work UNLESS this patch is added.

#2 Updated by Tim Sutton over 17 years ago

Hi

I get

/Users/tim/dev/cpp/qgis0.8/src/helpviewer/main.cpp: In function 'int main(int, char**)':
/Users/tim/dev/cpp/qgis0.8/src/helpviewer/main.cpp:22: error: cannot call member function 'void QgsApplication::setPkgDataPath(const QString&)' without object
maker2: * [src/helpviewer/CMakeFiles/qgis_help.dir/main.o] Error 1
maker1:
[src/helpviewer/CMakeFiles/qgis_help.dir/all] Error 2
make: *
* [all] Error 2

When applying the patch on mac. Im investigating why and will close this ticket after that is resolved.

Thanks Magnus!

#3 Updated by Tim Sutton over 17 years ago

  • Resolution set to fixed
  • Status changed from Open to Closed

Applied to 0.8 branch with revision 6701

#4 Updated by Anonymous over 15 years ago

Milestone Version 0.8.1 deleted

Also available in: Atom PDF