summaryrefslogtreecommitdiff
path: root/src/controller.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/controller.cpp')
-rw-r--r--src/controller.cpp4
1 files changed, 2 insertions, 2 deletions
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<int> &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());