src/eric7/Preferences/__init__.py

branch
eric7
changeset 9326
1d8eadd8873e
parent 9221
bf71ee032bb4
child 9350
8d2b507f8588
--- 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