]> git.sur5r.net Git - bacula/bacula/commitdiff
Tweak FileSet
authorKern Sibbald <kern@sibbald.com>
Tue, 22 May 2007 08:58:47 +0000 (08:58 +0000)
committerKern Sibbald <kern@sibbald.com>
Tue, 22 May 2007 08:58:47 +0000 (08:58 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@4871 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/src/qt-console/fileset/fileset.cpp
bacula/src/qt-console/fileset/fileset.h

index 32fd4c4e9696c32e77daa02622c3ceb9192001bd..ded84d15d64fda8c7b8e9f0fd93163c72c8c9cb6 100644 (file)
@@ -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; cnter<headerlist.size(); cnter++) {
+   for (int cnter=1; cnter<headerlist.size(); cnter++) {
       mp_treeWidget->resizeColumnToContents(cnter);
    }
 
index 0b0a9b20109aeccaa10d068dbef8e85e49e95203..ba4d9c251ba06e65de2fcfeceb6a7968f76d8f47 100644 (file)
@@ -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;