Skip to content

Commit

Permalink
qml: Print "Default" for Default Style in log
Browse files Browse the repository at this point in the history
  • Loading branch information
hebasto committed Aug 30, 2021
1 parent 750efe8 commit c79be81
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/qt/guiutil.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -903,7 +903,8 @@ void LogQtInfo()
}

#if USE_QML
LogPrintf("QQuickStyle: %s\n", QQuickStyle::name().toStdString());
const auto style = QQuickStyle::name().toStdString();
LogPrintf("QQuickStyle: %s\n", style.empty() ? "Default" : style);
#else
LogPrintf("Style: %s / %s\n", QApplication::style()->objectName().toStdString(), QApplication::style()->metaObject()->className());
#endif // USE_QML
Expand Down

0 comments on commit c79be81

Please sign in to comment.