aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/help/localhelpmanager.cpp
diff options
context:
space:
mode:
authorChristian Stenger <christian.stenger@qt.io>2016-08-04 15:14:08 +0200
committerChristian Stenger <christian.stenger@qt.io>2016-08-05 04:39:44 +0000
commit612dd963078e1e9e0b5fee79969cda871a949578 (patch)
treeed87899d4133fd9a1ebc2ae072e82c81726d5b92 /src/plugins/help/localhelpmanager.cpp
parentb041c6c8d9e5e011f5bb7676d3ea41cb8e9d0972 (diff)
Help: Fix fallback font family on UNIX
Use "Sans Serif" as it is done inside Qt sources as well. Otherwise we run into the soft assert when retrieving the default fallback font style name on Linux systems. (Tested with Ubuntu, OpenSuSE, Arch Linux, Gentoo) Change-Id: Icf04a8ec4ace5014c5526a5a5e5ef45c48660afd Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Diffstat (limited to 'src/plugins/help/localhelpmanager.cpp')
-rw-r--r--src/plugins/help/localhelpmanager.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/help/localhelpmanager.cpp b/src/plugins/help/localhelpmanager.cpp
index 929286687d8..dee3ef7332d 100644
--- a/src/plugins/help/localhelpmanager.cpp
+++ b/src/plugins/help/localhelpmanager.cpp
@@ -81,7 +81,7 @@ static QString defaultFallbackFontFamily()
if (Utils::HostOsInfo::isMacHost())
return QString("Helvetica");
if (Utils::HostOsInfo::isAnyUnixHost())
- return QString("sans-serif");
+ return QString("Sans Serif");
return QString("Arial");
}