mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
additional null checks in player, gameselector, remoteclient, log (#2514)
This commit is contained in:
parent
212a7d00db
commit
0da2bdd7aa
4 changed files with 26 additions and 7 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue