Skip to content

Commit 8cd467b

Browse files
committedJun 20, 2014
generate context_help and function_help in the same order
1 parent 8cccdc5 commit 8cd467b

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed
 

‎python/plugins/processing/modeler/ModelerDialog.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -335,8 +335,8 @@ def openModel(self):
335335
self.hasChanged = False
336336
except WrongModelException, e:
337337
QMessageBox.critical(self, self.tr('Could not open model'),
338-
self.tr('The selected model could not be loaded.\n\
339-
Wrong line: %s') % e.msg)
338+
self.tr('The selected model could not be loaded.\n'
339+
'Wrong line: %s') % e.msg)
340340

341341
def repaintModel(self):
342342
self.scene = ModelerScene()

‎resources/context_help/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ SET(HELP_OUTPUT "${CMAKE_SOURCE_DIR}/src/core/qgscontexthelp_texts.cpp")
55

66
FILE(WRITE ${HELP_OUTPUT} "#include \"qgscontexthelp.h\"\n#include <QCoreApplication>\n\nQHash<QString, QString> QgsContextHelp::gContextHelpTexts;\n\nvoid QgsContextHelp::init()\n{\n if( !gContextHelpTexts.isEmpty() )\n return;\n")
77

8+
LIST(SORT HELP_FILES)
9+
810
FOREACH(HELP_FILE ${HELP_FILES})
911
STRING(REGEX REPLACE "^.*/([^/]+)$" "\\1" CONTEXT ${HELP_FILE})
1012

‎resources/function_help/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ SET(HELP_OUTPUT "${CMAKE_SOURCE_DIR}/src/core/qgsexpression_texts.cpp")
55

66
FILE(WRITE ${HELP_OUTPUT} "#include \"qgsexpression.h\"\n#include <QCoreApplication>\n\nQHash<QString, QString> QgsExpression::gFunctionHelpTexts;\n\nvoid QgsExpression::initFunctionHelp()\n{\n if( !gFunctionHelpTexts.isEmpty() )\n return;\n")
77

8+
LIST(SORT HELP_FILES)
9+
810
FOREACH(HELP_FILE ${HELP_FILES})
911
STRING(REGEX REPLACE "^.*/([^/]+)$" "\\1" FN ${HELP_FILE})
1012

0 commit comments

Comments
 (0)
Please sign in to comment.