1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-01-11 07:18:08 +00:00

Slight improvement of the notification code

This commit is contained in:
Christophe Dumez 2011-04-02 09:06:12 +00:00
parent c7314b99ea
commit f379084b68

View File

@ -1107,8 +1107,10 @@ void MainWindow::showNotificationBaloon(QString title, QString msg) const {
"/org/freedesktop/Notifications",
QDBusConnection::sessionBus());
if(notifications.isValid()) {
QVariantMap hints;
hints["desktop-entry"] = "qBittorrent";
QDBusPendingReply<uint> reply = notifications.Notify("qBittorrent", 0, "qbittorrent", title,
msg, QStringList(), QVariantMap(), -1);
msg, QStringList(), hints, -1);
reply.waitForFinished();
if(!reply.isError())
return;