Only set QtDebugMsg when build type is debug

This commit is contained in:
Jonas Kvinge
2018-10-31 19:41:52 +01:00
parent 1213306657
commit 26459763e5
3 changed files with 12 additions and 5 deletions

View File

@@ -203,7 +203,9 @@ int main(int argc, char* argv[]) {
Q_INIT_RESOURCE(data);
Q_INIT_RESOURCE(icons);
#ifdef DEBUG
QLoggingCategory::defaultCategory()->setEnabled(QtDebugMsg, true);
#endif
Application app;