mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-08-03 01:15:41 -07:00
additional null checks in player, gameselector, remoteclient, log (#2514)
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user