diff options
Diffstat (limited to 'desktop-widgets/tableview.cpp')
-rw-r--r-- | desktop-widgets/tableview.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/desktop-widgets/tableview.cpp b/desktop-widgets/tableview.cpp index 3e9bb129e..0bb5bb198 100644 --- a/desktop-widgets/tableview.cpp +++ b/desktop-widgets/tableview.cpp @@ -73,7 +73,7 @@ TableView::~TableView() } if (oldDefault) { s.remove(""); - } else { + } else if (ui.tableView->model()) { for (int i = 0; i < ui.tableView->model()->columnCount(); i++) { if (ui.tableView->columnWidth(i) == defaultColumnWidth(i)) s.remove(QString("colwidth%1").arg(i)); |