Manually simplify bool expressions and fix rtgui/progressconnector.h

This commit is contained in:
Flössie
2016-10-18 18:30:25 +02:00
parent ae98d4cb1f
commit fb8941cd88
3 changed files with 6 additions and 4 deletions

View File

@@ -1968,11 +1968,12 @@ void EditorPanel::histogramChanged (LUTu & histRed, LUTu & histGreen, LUTu & his
bool EditorPanel::CheckSidePanelsVisibility()
{
if (tbTopPanel_1) {
return !(!tbTopPanel_1->get_active() && !tbRightPanel_1->get_active() && !hidehp->get_active());
return tbTopPanel_1->get_active() || tbRightPanel_1->get_active() || hidehp->get_active();
}
return !(!tbRightPanel_1->get_active() && !hidehp->get_active());
return tbRightPanel_1->get_active() || hidehp->get_active();
}
void EditorPanel::toggleSidePanels()
{
// Maximize preview panel: