additional null checks in player, gameselector, remoteclient, log (#2514)

This commit is contained in:
Zach H 2017-03-19 12:55:55 -04:00 committed by GitHub
parent 212a7d00db
commit 0da2bdd7aa
4 changed files with 26 additions and 7 deletions

View file

@ -54,7 +54,8 @@ void Logger::log(QtMsgType /* type */, const QMessageLogContext & /* ctx */, con
if(logBuffer.size() > LOGGER_MAX_ENTRIES)
logBuffer.removeFirst();
emit logEntryAdded(message);
if (message.size() > 0)
emit logEntryAdded(message);
std::cerr << message.toStdString() << std::endl; // Print to stdout