mirror of
https://github.com/JulianGro/overte.git
synced 2025-08-16 20:20:31 +02:00
correctly break on end of qDebug message in LogDisplay
This commit is contained in:
parent
51d1e6ae80
commit
063094f96c
1 changed files with 6 additions and 1 deletions
|
@ -97,8 +97,9 @@ void LogDisplay::addMessage(const char* ptr) {
|
|||
fprintf(_stream, "%s", ptr);
|
||||
}
|
||||
|
||||
while (*ptr != '\0') {
|
||||
while (true) {
|
||||
// process the characters
|
||||
bool isEndOfMessage = (*ptr == '\0');
|
||||
char c = *ptr++;
|
||||
|
||||
if (c == '\t') {
|
||||
|
@ -150,6 +151,10 @@ void LogDisplay::addMessage(const char* ptr) {
|
|||
_writeLineStartPos = _writePos;
|
||||
_writtenInLine = 0;
|
||||
}
|
||||
|
||||
if (isEndOfMessage) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
pthread_mutex_unlock(& _mutex);
|
||||
|
|
Loading…
Reference in a new issue