diff options
author | Andrzej Rybczak <electricityispower@gmail.com> | 2015-04-18 20:51:03 +0200 |
---|---|---|
committer | Andrzej Rybczak <electricityispower@gmail.com> | 2015-04-18 20:51:03 +0200 |
commit | 7bcf79109f7826afef7256df3ba6df8f2873928d (patch) | |
tree | 485c6c689cabfc7a856166aeeb874b37789123af /src/lastfm.h | |
parent | ccad8fcf06dcdd7821b5c4d04978734e431b0433 (diff) |
actions: toggle screen lock: check if screen is lockable before asking for width
Diffstat (limited to 'src/lastfm.h')
-rw-r--r-- | src/lastfm.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/lastfm.h b/src/lastfm.h index 051dc8aa..09638824 100644 --- a/src/lastfm.h +++ b/src/lastfm.h @@ -48,6 +48,7 @@ struct Lastfm: Screen<NC::Scrollpad>, Tabbable virtual void enterPressed() OVERRIDE { } virtual void spacePressed() OVERRIDE { } + virtual bool isLockable() OVERRIDE { return false; } virtual bool isMergable() OVERRIDE { return true; } template <typename ServiceT> @@ -69,9 +70,6 @@ struct Lastfm: Screen<NC::Scrollpad>, Tabbable m_title = ToWString(m_service->name()); } -protected: - virtual bool isLockable() OVERRIDE { return false; } - private: void getResult(); |