From 612dd963078e1e9e0b5fee79969cda871a949578 Mon Sep 17 00:00:00 2001 From: Christian Stenger Date: Thu, 4 Aug 2016 15:14:08 +0200 Subject: [PATCH] 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 --- src/plugins/help/localhelpmanager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"); }