Showing the changes to interface/src/Application.cpp (1 of 27 files). Show all
Unified · Split
| @@ -575,10 +575,7 @@ void messageHandler(QtMsgType type, const QMessageLogContext& context, const QSt · 574 unmodified lines | |||
| 575 | QString logMessage = LogHandler::getInstance().printMessage((LogMsgType) type, context, message); | 575 | QString logMessage = LogHandler::getInstance().printMessage((LogMsgType) type, context, message); |
| 576 | 576 | ||
| 577 | if (!logMessage.isEmpty()) { | 577 | if (!logMessage.isEmpty()) { |
| 578 | #ifdef Q_OS_WIN | 578 | #ifdef Q_OS_ANDROID |
| 579 | OutputDebugStringA(logMessage.toLocal8Bit().constData()); | ||
| 580 | OutputDebugStringA("\n"); | ||
| 581 | #elif defined Q_OS_ANDROID | ||
| 582 | const char * local=logMessage.toStdString().c_str(); | 579 | const char * local=logMessage.toStdString().c_str(); |
| 583 | switch (type) { | 580 | switch (type) { |
| 584 | case QtDebugMsg: | 581 | case QtDebugMsg: |
| @@ -599,7 +596,7 @@ void messageHandler(QtMsgType type, const QMessageLogContext& context, const QSt · 14 unmodified lines | |||
| 599 | abort(); | 596 | abort(); |
| 600 | } | 597 | } |
| 601 | #endif | 598 | #endif |
| 602 | qApp->getLogger()->addMessage(qPrintable(logMessage + "\n")); | 599 | qApp->getLogger()->addMessage(qPrintable(logMessage)); |
| 603 | } | 600 | } |
| 604 | } | 601 | } |
| 605 | 602 | ||