Commit 7b9dde9b authored by Emmanuel Promayon's avatar Emmanuel Promayon

FIXED crash when using test application

parent 4314deda
......@@ -219,6 +219,9 @@ void MainWindow::showViewer(Viewer* theViewer, bool visible) {
// ------------- showViewerToolbar -----------------
void MainWindow::showViewerToolbar(Viewer* theViewer, bool visible) {
if (theViewer == nullptr)
return;
QToolBar* viewerToolBar = theViewer->getToolBar();
if (viewerToolBar != nullptr) {
if (visible && theViewer->getToolBarVisibility()) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment