Fixed a little issue determining the path to the Qt documentation for Qt5 causing the path for Qt6 being returned. eric7

Wed, 14 Sep 2022 11:07:55 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Wed, 14 Sep 2022 11:07:55 +0200
branch
eric7
changeset 9326
1d8eadd8873e
parent 9325
8157eb19aba5
child 9327
2b768afcaee1

Fixed a little issue determining the path to the Qt documentation for Qt5 causing the path for Qt6 being returned.

src/eric7/Preferences/__init__.py file | annotate | diff | comparison | revisions
diff -r 8157eb19aba5 -r 1d8eadd8873e src/eric7/Preferences/__init__.py
--- a/src/eric7/Preferences/__init__.py	Tue Sep 13 20:00:55 2022 +0200
+++ b/src/eric7/Preferences/__init__.py	Wed Sep 14 11:07:55 2022 +0200
@@ -2763,7 +2763,7 @@
     s = Prefs.settings.value("Help/{0}".format(key), Prefs.helpDefaults[key])
     if s == "":
         s = os.getenv(key.upper(), "")
-    if s == "":
+    if s == "" and version == 6:  # that only works for Qt6
         s = os.path.join(
             QLibraryInfo.path(QLibraryInfo.LibraryPath.DocumentationPath), "qtdoc"
         )

eric ide

mercurial