]> git.sur5r.net Git - bacula/bacula/commitdiff
Prevent the settings for the splitter from being written if the plot has not
authorDirk H Bartley <dbartley@schupan.com>
Sat, 21 Jul 2007 15:56:30 +0000 (15:56 +0000)
committerDirk H Bartley <dbartley@schupan.com>
Sat, 21 Jul 2007 15:56:30 +0000 (15:56 +0000)
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

index 2128bbcc2150ec1afc881610d9e89e6fdcdfd129..daec21a232afc56aac873b7598d7926a61ca989d 100644 (file)
@@ -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;
    }
-
 }
 
 /*