summaryrefslogtreecommitdiff
path: root/src/browser.h
diff options
context:
space:
mode:
authorAndrzej Rybczak <electricityispower@gmail.com>2015-04-18 20:51:03 +0200
committerAndrzej Rybczak <electricityispower@gmail.com>2015-04-18 20:51:03 +0200
commit7bcf79109f7826afef7256df3ba6df8f2873928d (patch)
tree485c6c689cabfc7a856166aeeb874b37789123af /src/browser.h
parentccad8fcf06dcdd7821b5c4d04978734e431b0433 (diff)
actions: toggle screen lock: check if screen is lockable before asking for width
Diffstat (limited to 'src/browser.h')
-rw-r--r--src/browser.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/browser.h b/src/browser.h
index b310ce51..9cbf9f04 100644
--- a/src/browser.h
+++ b/src/browser.h
@@ -43,6 +43,7 @@ struct Browser: Screen<NC::Menu<MPD::Item>>, HasSongs, Searchable, Tabbable
virtual void spacePressed() OVERRIDE;
virtual void mouseButtonPressed(MEVENT me) OVERRIDE;
+ virtual bool isLockable() OVERRIDE { return true; }
virtual bool isMergable() OVERRIDE { return true; }
// Searchable implementation
@@ -73,9 +74,6 @@ struct Browser: Screen<NC::Menu<MPD::Item>>, HasSongs, Searchable, Tabbable
static void fetchSupportedExtensions();
-protected:
- virtual bool isLockable() OVERRIDE { return true; }
-
private:
bool m_update_request;
bool m_local_browser;