Use QDateTime::currentSecsSinceEpoch()

This commit is contained in:
Jonas Kvinge
2024-08-24 17:28:29 +02:00
parent 2604e1a0ff
commit dde8661e93
9 changed files with 20 additions and 20 deletions

View File

@@ -76,7 +76,7 @@ bool GlobalShortcutsBackendMate::DoRegister() {
return false;
}
QDBusPendingReply<> reply = interface_->GrabMediaPlayerKeys(QCoreApplication::applicationName(), QDateTime::currentDateTime().toSecsSinceEpoch());
QDBusPendingReply<> reply = interface_->GrabMediaPlayerKeys(QCoreApplication::applicationName(), QDateTime::currentSecsSinceEpoch());
QDBusPendingCallWatcher *watcher = new QDBusPendingCallWatcher(reply, this);
QObject::connect(watcher, &QDBusPendingCallWatcher::finished, this, &GlobalShortcutsBackendMate::RegisterFinished);