fix Linux build failure

This commit is contained in:
wmayer
2018-04-27 14:47:19 +02:00
parent d34847f755
commit 5941a32f71

View File

@@ -1699,10 +1699,10 @@ void Application::runApplication(void)
#endif
ParameterGrp::handle hTheme = App::GetApplication().GetParameterGroupByPath("User parameter:BaseApp/Preferences/Bitmaps/Theme");
std::string path = hTheme->GetASCII("SearchPath");
if (!path.empty()) {
std::string searchpath = hTheme->GetASCII("SearchPath");
if (!searchpath.empty()) {
QStringList searchPaths = QIcon::themeSearchPaths();
searchPaths.prepend(QString::fromUtf8(path.c_str()));
searchPaths.prepend(QString::fromUtf8(searchpath.c_str()));
QIcon::setThemeSearchPaths(searchPaths);
}