diff options
author | albert-github <albert.tests@gmail.com> | 2020-02-24 13:46:26 (GMT) |
---|---|---|
committer | albert-github <albert.tests@gmail.com> | 2020-02-24 13:46:26 (GMT) |
commit | 8a7647bd12f383730c886b34c431ae976ec5ff83 (patch) | |
tree | 974a5cbec00b9206cd23b5232d3aa2ecf26ba781 /src/util.cpp | |
parent | 3b392af822d81ae51919feb2c2fc4c539238bb3b (diff) | |
download | Doxygen-8a7647bd12f383730c886b34c431ae976ec5ff83.zip Doxygen-8a7647bd12f383730c886b34c431ae976ec5ff83.tar.gz Doxygen-8a7647bd12f383730c886b34c431ae976ec5ff83.tar.bz2 |
issue #7583 External Links in Inheritance Diagrams open in the Image Frame.
When having a function it opens in the current frame and uses the complete frame. Images (e.g. inherited diagrams) are displayed in a small "sub frame" and when displaying the link here it is not readable and furthermore the user doesn't know anything about the "sub frame". In case of an image the link should be displayed in the parent frame of the image.
Diffstat (limited to 'src/util.cpp')
-rw-r--r-- | src/util.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/util.cpp b/src/util.cpp index 25ca13e..92f593c 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -8163,10 +8163,15 @@ void writeSummaryLink(OutputList &ol,const char *label,const char *title, } #endif -QCString externalLinkTarget() +QCString externalLinkTarget(const bool parent) { static bool extLinksInWindow = Config_getBool(EXT_LINKS_IN_WINDOW); - if (extLinksInWindow) return "target=\"_blank\" "; else return ""; + if (extLinksInWindow) + return "target=\"_blank\" "; + else if (parent) + return "target=\"_parent\" "; + else + return ""; } QCString externalRef(const QCString &relPath,const QCString &ref,bool href) |