summaryrefslogtreecommitdiff
path: root/editor/editor_help.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2020-06-11 09:32:40 +0200
committerGitHub <noreply@github.com>2020-06-11 09:32:40 +0200
commit2dae762e533145fdea1b34f3897f1b8c2949c9d9 (patch)
treef82f86dbaabf88ff82be3204be25ad447d39246e /editor/editor_help.cpp
parentb38d3a731d556e8497e610929a4cbb49e9e450f3 (diff)
parent18c08f65d6b3dd7918a1f6c1d08f30262497af56 (diff)
Merge pull request #39355 from SaviHex/better-docs-links
Added a "title" attribute for the link tag in the docs xml
Diffstat (limited to 'editor/editor_help.cpp')
-rw-r--r--editor/editor_help.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/editor/editor_help.cpp b/editor/editor_help.cpp
index 30cf7d1e7a..bad2203423 100644
--- a/editor/editor_help.cpp
+++ b/editor/editor_help.cpp
@@ -480,8 +480,8 @@ void EditorHelp::_update_doc() {
class_desc->add_newline();
for (int i = 0; i < cd.tutorials.size(); i++) {
- const String link = DTR(cd.tutorials[i]);
- String linktxt = link;
+ const String link = DTR(cd.tutorials[i].link);
+ String linktxt = (cd.tutorials[i].title.empty()) ? link : DTR(cd.tutorials[i].title);
const int seppos = linktxt.find("//");
if (seppos != -1) {
linktxt = link.right(seppos + 2);