1
0
Fork 0

src/GUI/QtLauncher.cxx: fix call to sglog() to pass __FUNCTION__.

This commit is contained in:
Julian Smith 2020-09-26 16:37:19 +01:00
parent 63fe407d80
commit 68938ddb4b

View file

@ -227,7 +227,7 @@ static void simgearMessageOutput(QtMsgType type, const QMessageLogContext &conte
const char* file = context.file ? context.file : nullFile;
const auto s = msg.toStdString();
// important we copy the file name here, since QMessageLogContext doesn't
sglog().logCopyingFilename(SG_GUI, mappedPriority, file, context.line, s);
sglog().logCopyingFilename(SG_GUI, mappedPriority, file, context.line, "" /*function*/, s);
if (type == QtFatalMsg) {
abort();
}