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:
David Kahles 2016-03-31 23:32:36 +02:00
parent ebce509158
commit a8bd062baf

View file

@ -133,7 +133,6 @@ void NotificationsModel::receivedNotifications(QDBusPendingCallWatcher* watcher)
clearNotifications();
QDBusPendingReply<QStringList> pendingNotificationIds = *watcher;
clearNotifications();
if (pendingNotificationIds.isError()) {
qCWarning(KDECONNECT_INTERFACES) << pendingNotificationIds.error();
return;