Make sure gGraphView::SaveSettings doesn't try to save snapshot graphs

This commit is contained in:
Mark Watkins 2014-08-28 00:02:05 +10:00
parent 953c9ad662
commit 4473ca745a

View File

@ -2994,6 +2994,7 @@ void gGraphView::SaveSettings(QString title)
for (qint16 i = 0; i < size(); i++) { for (qint16 i = 0; i < size(); i++) {
gGraph * graph = m_graphs[i]; gGraph * graph = m_graphs[i];
if (!graph) continue; if (!graph) continue;
if (graph->isSnapshot()) continue;
out << graph->name(); out << graph->name();
out << graph->height(); out << graph->height();