From 7bcf79109f7826afef7256df3ba6df8f2873928d Mon Sep 17 00:00:00 2001 From: Andrzej Rybczak Date: Sat, 18 Apr 2015 20:51:03 +0200 Subject: actions: toggle screen lock: check if screen is lockable before asking for width --- src/browser.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/browser.h') 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>, 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>, HasSongs, Searchable, Tabbable static void fetchSupportedExtensions(); -protected: - virtual bool isLockable() OVERRIDE { return true; } - private: bool m_update_request; bool m_local_browser; -- cgit v1.2.3