diff options
Diffstat (limited to 'qt-ui/mainwindow.cpp')
-rw-r--r-- | qt-ui/mainwindow.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/qt-ui/mainwindow.cpp b/qt-ui/mainwindow.cpp index 8e0e54eaa..4d0299d7e 100644 --- a/qt-ui/mainwindow.cpp +++ b/qt-ui/mainwindow.cpp @@ -44,6 +44,7 @@ MainWindow::MainWindow() : ui(new Ui::MainWindow()) ui->ProfileWidget->setFocusProxy(ui->ListWidget); ui->ListWidget->reload(); readSettings(); + ui->ListWidget->reloadHeaderActions(); ui->ListWidget->setFocus(); ui->globe->reload(); instance = this; @@ -432,7 +433,8 @@ void MainWindow::writeSettings() settings.beginGroup("ListWidget"); for (i = TreeItemDT::NR; i < TreeItemDT::COLUMNS; i++) - settings.setValue(QString("colwidth%1").arg(i), ui->ListWidget->columnWidth(i)); + if (!ui->ListWidget->isColumnHidden(i)) + settings.setValue(QString("colwidth%1").arg(i), ui->ListWidget->columnWidth(i)); settings.endGroup(); settings.beginGroup("Units"); SAVE_VALUE("feet", units.length); |