From: Dirk H Bartley Date: Sat, 21 Jul 2007 15:56:30 +0000 (+0000) Subject: Prevent the settings for the splitter from being written if the plot has not X-Git-Tag: Release-7.0.0~5976 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=96802bf7231d28e8f7f4b2542dde98e2ba0f3d96;p=bacula%2Fbacula 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 --- 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; } - } /*