From 7ce4bd53266444ddcc58a70d9ddcf71fbd2c06bb Mon Sep 17 00:00:00 2001 From: "Javier S. Pedro" Date: Sat, 20 Sep 2014 19:24:29 +0200 Subject: minor changes --- src/controller.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/controller.cpp b/src/controller.cpp index 5593582..e15a54a 100644 --- a/src/controller.cpp +++ b/src/controller.cpp @@ -273,9 +273,9 @@ void Controller::handleIncomingNotification(const QString &sender, const QIcon & void Controller::handleWidgetChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight, const QVector &roles) { - if (roles.indexOf(WidgetInfoModel::UrlRole) >= 0) { - if (!isWatchConnected()) return; + if (!isWatchConnected()) return; + if (roles.indexOf(WidgetInfoModel::UrlRole) >= 0) { // Can't send partial updates to watch, so entire list must be // resubmitted everytime something important changes _metawatch->updateWidgetList(_widgets->toList()); -- cgit v1.2.3