Qt: Ensure FATAL logs reach log view

This commit is contained in:
Vicki Pfau 2019-01-12 15:56:29 -08:00
parent 69014400db
commit c1eb1e5ae1
2 changed files with 3 additions and 2 deletions

View File

@ -145,6 +145,7 @@ Bugfixes:
- SDL: Fix handling of invalid gamepads (fixes mgba.io/i/1239)
- Libretro: Fix adding codes with hooks
- GBA: Fix GB Player features
- Qt: Ensure FATAL logs reach log view
Misc:
- mGUI: Add SGB border configuration option
- mGUI: Add support for different settings types

View File

@ -185,12 +185,12 @@ CoreController::CoreController(mCore* core, QObject* parent)
message = QString().vsprintf(format, args);
QMetaObject::invokeMethod(controller, "statusPosted", Q_ARG(const QString&, message));
}
message = QString().vsprintf(format, args);
QMetaObject::invokeMethod(controller, "logPosted", Q_ARG(int, level), Q_ARG(int, category), Q_ARG(const QString&, message));
if (level == mLOG_FATAL) {
mCoreThreadMarkCrashed(controller->thread());
QMetaObject::invokeMethod(controller, "crashed", Q_ARG(const QString&, QString().vsprintf(format, args)));
}
message = QString().vsprintf(format, args);
QMetaObject::invokeMethod(controller, "logPosted", Q_ARG(int, level), Q_ARG(int, category), Q_ARG(const QString&, message));
};
}