qt: Fix logging

This commit is contained in:
Nekotekina 2017-06-22 16:41:28 +03:00 committed by Ivan
parent b3c4ec4b55
commit 0da9c8d20c

View File

@ -65,7 +65,7 @@ struct gui_listener : logs::listener
_new->msg += "} ";
}
if (msg.ch->name)
if ('\0' != *msg.ch->name)
{
_new->msg += msg.ch->name;
_new->msg += msg.sev == logs::level::todo ? " TODO: " : ": ";