From 0814c96da7cd32509cf182667b4b124dea4aab2b Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Tue, 22 May 2007 08:58:47 +0000 Subject: [PATCH] Tweak FileSet git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@4871 91ce42f0-d328-0410-95d8-f526ca767f89 --- bacula/src/qt-console/fileset/fileset.cpp | 4 +++- bacula/src/qt-console/fileset/fileset.h | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/bacula/src/qt-console/fileset/fileset.cpp b/bacula/src/qt-console/fileset/fileset.cpp index 32fd4c4e96..ded84d15d6 100644 --- a/bacula/src/qt-console/fileset/fileset.cpp +++ b/bacula/src/qt-console/fileset/fileset.cpp @@ -50,10 +50,12 @@ FileSet::FileSet() m_populated = false; m_checkcurwidget = true; m_closeable = false; + readSettings(); } FileSet::~FileSet() { + writeSettings(); } /* @@ -124,7 +126,7 @@ void FileSet::populateTree() } } /* Resize the columns */ - for(int cnter=1; cnterresizeColumnToContents(cnter); } diff --git a/bacula/src/qt-console/fileset/fileset.h b/bacula/src/qt-console/fileset/fileset.h index 0b0a9b2010..ba4d9c251b 100644 --- a/bacula/src/qt-console/fileset/fileset.h +++ b/bacula/src/qt-console/fileset/fileset.h @@ -45,8 +45,6 @@ class FileSet : public Pages, public Ui::FileSetForm public: FileSet(); ~FileSet(); - void writeSettings(); - void readSettings(); virtual void PgSeltreeWidgetClicked(); virtual void currentStackItem(); @@ -58,6 +56,8 @@ private slots: void consoleStatusFileSet(); private: + void writeSettings(); + void readSettings(); void createContextMenu(); QString m_currentlyselected; bool m_populated; -- 2.39.5