actions: toggle screen lock: check if screen is lockable before asking for width

This commit is contained in:
Andrzej Rybczak
2015-04-18 20:51:03 +02:00
parent ccad8fcf06
commit 7bcf79109f
20 changed files with 31 additions and 62 deletions

View File

@@ -45,15 +45,13 @@ struct SortPlaylistDialog
virtual void spacePressed() OVERRIDE { }
virtual void mouseButtonPressed(MEVENT me) OVERRIDE;
virtual bool isLockable() OVERRIDE { return false; }
virtual bool isMergable() OVERRIDE { return false; }
// private members
void moveSortOrderUp();
void moveSortOrderDown();
protected:
virtual bool isLockable() OVERRIDE { return false; }
private:
void moveSortOrderHint() const;
void sort() const;