diff options
author | Javier S. Pedro <dev.git@javispedro.com> | 2014-09-27 15:46:20 +0200 |
---|---|---|
committer | Javier S. Pedro <dev.git@javispedro.com> | 2014-09-27 15:46:20 +0200 |
commit | 890901db0118aec55bce2b8f0c63d7fb5a35fcd8 (patch) | |
tree | 7e24448186aa51f3a48fc241e5651ebca5f36553 /src | |
parent | 43af250113b048a5a110b027f4525dc994af231f (diff) | |
download | salmeta-890901db0118aec55bce2b8f0c63d7fb5a35fcd8.tar.gz salmeta-890901db0118aec55bce2b8f0c63d7fb5a35fcd8.zip |
handle notification mode entering messages
Diffstat (limited to 'src')
-rw-r--r-- | src/controller.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/controller.cpp b/src/controller.cpp index 44fe393..0a502da 100644 --- a/src/controller.cpp +++ b/src/controller.cpp @@ -199,6 +199,14 @@ void Controller::handleMetaWatchModeChange(MetaWatch::WatchMode mode, int page) } break; + case MetaWatch::WatchModeNotification: + if (_curMode != mode) { + _curMode = mode; + emit modeChanged(); + } + // Watch will often go back to the same page once it returns to idle mode, + // so let's not clobber _curPage. + break; default: qWarning() << "Unhandled metawatch mode:" << mode; break; |