summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJavier S. Pedro <dev.git@javispedro.com>2014-09-20 19:24:29 +0200
committerJavier S. Pedro <dev.git@javispedro.com>2014-09-20 19:24:29 +0200
commit7ce4bd53266444ddcc58a70d9ddcf71fbd2c06bb (patch)
treefc013fdc216dbb98fbf407e770caba961a758c2e /src
parentcc1af30276d3650dd71589cd1d7c005da3a64873 (diff)
downloadsalmeta-7ce4bd53266444ddcc58a70d9ddcf71fbd2c06bb.tar.gz
salmeta-7ce4bd53266444ddcc58a70d9ddcf71fbd2c06bb.zip
minor changes
Diffstat (limited to 'src')
-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());