DBViewer: fixed disabled show/hide map option while map is available

This commit is contained in:
matlabbe
2017-07-12 21:26:14 -04:00
parent 78bdd4a087
commit c833af1ae6
2 changed files with 8 additions and 8 deletions

View File

@@ -1176,19 +1176,19 @@ void GraphViewer::setMaxLinkLength(float value)
}
void GraphViewer::setGraphVisible(bool visible)
{
_graphRoot->setVisible(!_graphRoot->isVisible());
_graphRoot->setVisible(visible);
}
void GraphViewer::setGlobalPathVisible(bool visible)
{
_globalPathRoot->setVisible(!_globalPathRoot->isVisible());
_globalPathRoot->setVisible(visible);
}
void GraphViewer::setLocalPathVisible(bool visible)
{
_localPathRoot->setVisible(!_localPathRoot->isVisible());
_localPathRoot->setVisible(visible);
}
void GraphViewer::setGtGraphVisible(bool visible)
{
_gtGraphRoot->setVisible(!_gtGraphRoot->isVisible());
_gtGraphRoot->setVisible(visible);
}
void GraphViewer::restoreDefaults()