# HG changeset patch # User Hasan Yavuz ÖZDERYA # Date 2018-03-06 15:05:01 # Node ID a7301e1282b48a759645f73237e6b7fba8618933 # Parent 3fed92f0a7f62866402f37b14766dee3221d9eda fix crash when opening snapshot in multi plot mode #18 diff --git a/src/plotmanager.cpp b/src/plotmanager.cpp --- a/src/plotmanager.cpp +++ b/src/plotmanager.cpp @@ -1,5 +1,5 @@ /* - Copyright © 2017 Hasan Yavuz Özderya + Copyright © 2018 Hasan Yavuz Özderya This file is part of serialplot. @@ -205,7 +205,11 @@ void PlotManager::setMulti(bool enabled) } } - checkNoVisChannels(); + // will skip if no plot widgets exist (can happen during constructor) + if (plotWidgets.length()) + { + checkNoVisChannels(); + } } void PlotManager::setupLayout(bool multiPlot)