aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSkye Deving <76892045+skyedeving@users.noreply.github.com>2021-01-04 19:21:11 -0600
committerSkye Deving <76892045+skyedeving@users.noreply.github.com>2021-01-04 19:21:11 -0600
commit8aaba6633ec8b3303e0e7f24d42b96f3d5a4a90e (patch)
tree28fbee999ccd73e9640e7252302ba7ebf6e19ce2 /src
parent6570bcf0662d675cc3f0ed89820fc95efe4cace3 (diff)
Change default parameter to be QDateTime::currentDateTime()
Print debug message if provided timestamp is invalid
Diffstat (limited to 'src')
-rw-r--r--src/courtroom.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/courtroom.cpp b/src/courtroom.cpp
index 9fda3954..5f9d206e 100644
--- a/src/courtroom.cpp
+++ b/src/courtroom.cpp
@@ -2650,8 +2650,7 @@ void Courtroom::append_ic_text(QString p_text, QString p_name, QString p_action,
ui_ic_chatlog->textCursor().insertText(
"[" + timestamp.toString("h:mm:ss AP") + "] ", normal);
} else {
- ui_ic_chatlog->textCursor().insertText(
- "[" + QDateTime::currentDateTime().toString("h:mm:ss AP") + "] ", normal);
+ qDebug() << "could not insert invalid timestamp";
}
}