add ifdefs to fix conditional compilation

This commit is contained in:
Andrzej Rybczak
2015-11-04 21:01:29 +01:00
parent d7a16aebfc
commit 5ce704e31c
3 changed files with 12 additions and 2 deletions

View File

@@ -2268,12 +2268,18 @@ void SetSelectedItemsPriority::run()
bool ToggleOutput::canBeRun()
{
#ifdef ENABLE_OUTPUTS
return myScreen == myOutputs;
#else
return false;
#endif // ENABLE_OUTPUTS
}
void ToggleOutput::run()
{
#ifdef ENABLE_OUTPUTS
myOutputs->toggleOutput();
#endif // ENABLE_OUTPUTS
}
bool ToggleVisualizationType::canBeRun()