Stop clearing the notification list twice
There were two clearNotifications() calls when refreshing the notification list. As there happens nothing relevant in between them, the second call is useless. REVIEW: 127542
This commit is contained in:
parent
ebce509158
commit
a8bd062baf
1 changed files with 0 additions and 1 deletions
|
@ -133,7 +133,6 @@ void NotificationsModel::receivedNotifications(QDBusPendingCallWatcher* watcher)
|
|||
clearNotifications();
|
||||
QDBusPendingReply<QStringList> pendingNotificationIds = *watcher;
|
||||
|
||||
clearNotifications();
|
||||
if (pendingNotificationIds.isError()) {
|
||||
qCWarning(KDECONNECT_INTERFACES) << pendingNotificationIds.error();
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue