Skip to content

Commit 059d0e2

Browse files
committedJul 8, 2018
[pyqgis-console] fix link to c++ api doc
1 parent 05368e4 commit 059d0e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎python/console/console_sci.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -624,7 +624,7 @@ def runCommand(self, cmd):
624624
if cmd == '_pyqgis':
625625
webbrowser.open("https://qgis.org/pyqgis/{}".format(version))
626626
elif cmd == '_api':
627-
webbrowser.open("https://qgis.org/api/{}".format(version))
627+
webbrowser.open("https://qgis.org/api/{}".format('' if version == 'master' else version))
628628
elif cmd == '_cookbook':
629629
webbrowser.open("https://docs.qgis.org/{}/en/docs/pyqgis_developer_cookbook/".format(
630630
'testing' if version == 'master' else version))

0 commit comments

Comments
 (0)
Please sign in to comment.