Skip to content
Snippets Groups Projects
Commit 312741f7 authored by Cyrille Valladeau's avatar Cyrille Valladeau
Browse files

WRG : ambigious else

parent 895e697e
Branches
Tags
No related merge requests found
...@@ -334,20 +334,22 @@ ImageViewerManagerViewGUI ...@@ -334,20 +334,22 @@ ImageViewerManagerViewGUI
return; return;
} }
if(guiDiaporama->shown() == 0 && guiLinkSetupWindow->shown() == 0) if(guiDiaporama->shown() == 0 && guiLinkSetupWindow->shown() == 0)
//check what to do {
if(!m_DisplayStatusList[selectedItem-1].first) //check what to do
{ if(!m_DisplayStatusList[selectedItem-1].first)
//New Display {
m_DisplayStatusList[selectedItem-1].first = true; //New Display
this->UpdateImageListShowed(selectedItem, m_DisplayedLabel); m_DisplayStatusList[selectedItem-1].first = true;
this->Display(m_WidgetManagerList,selectedItem); this->UpdateImageListShowed(selectedItem, m_DisplayedLabel);
} this->Display(m_WidgetManagerList,selectedItem);
else }
{ else
m_DisplayStatusList[selectedItem-1].first = false; {
this->UpdateImageListShowed(selectedItem, m_UndisplayedLabel); m_DisplayStatusList[selectedItem-1].first = false;
this->Undisplay(selectedItem); this->UpdateImageListShowed(selectedItem, m_UndisplayedLabel);
} this->Undisplay(selectedItem);
}
}
} }
/** /**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment