From 96802bf7231d28e8f7f4b2542dde98e2ba0f3d96 Mon Sep 17 00:00:00 2001 From: Dirk H Bartley Date: Sat, 21 Jul 2007 15:56:30 +0000 Subject: [PATCH] Prevent the settings for the splitter from being written if the plot has not been drawn. This fixes a repeatable way to get the splitter from going back to a state where it would be all the way to the right hiding the display of the plot. Done by opening bat and not viewing the plot and closing bat. git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@5208 91ce42f0-d328-0410-95d8-f526ca767f89 --- bacula/src/qt-console/jobgraphs/jobplot.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bacula/src/qt-console/jobgraphs/jobplot.cpp b/bacula/src/qt-console/jobgraphs/jobplot.cpp index 2128bbcc21..daec21a232 100644 --- a/bacula/src/qt-console/jobgraphs/jobplot.cpp +++ b/bacula/src/qt-console/jobgraphs/jobplot.cpp @@ -99,7 +99,8 @@ JobPlot::JobPlot(QTreeWidgetItem *parentTreeWidgetItem, JobPlotPass &passVals) */ JobPlot::~JobPlot() { - writeSettings(); + if (m_drawn) + writeSettings(); m_pjd.clear(); } @@ -113,7 +114,6 @@ void JobPlot::currentStackItem() reGraph(); m_drawn=true; } - } /* -- 2.39.5