projects
/
quassel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Improve the CMake option stuff
[quassel.git]
/
src
/
core
/
coreuserinputhandler.cpp
diff --git
a/src/core/coreuserinputhandler.cpp
b/src/core/coreuserinputhandler.cpp
index
e296818
..
cc508cf
100644
(file)
--- a/
src/core/coreuserinputhandler.cpp
+++ b/
src/core/coreuserinputhandler.cpp
@@
-169,8
+169,11
@@
void CoreUserInputHandler::handleCtcp(const BufferInfo &bufferInfo, const QStrin
QString verboseMessage = tr("sending CTCP-%1 request to %2").arg(ctcpTag).arg(nick);
if (ctcpTag == "PING") {
QString verboseMessage = tr("sending CTCP-%1 request to %2").arg(ctcpTag).arg(nick);
if (ctcpTag == "PING") {
- uint now = QDateTime::currentDateTime().toTime_t();
- message = QString::number(now);
+#if QT_VERSION >= 0x040700
+ message = QString::number(QDateTime::currentMSecsSinceEpoch());
+#else
+ message = QString::number(QDateTime::currentDateTime().toTime_t());
+#endif
}
// FIXME make this a proper event
}
// FIXME make this a proper event