mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Fix a crash on exit
Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
This commit is contained in:
parent
972819d77a
commit
c88be99d84
1 changed files with 1 additions and 1 deletions
|
@ -67,7 +67,7 @@ TableView::~TableView()
|
|||
s.beginGroup(objectName());
|
||||
// remove the old default
|
||||
bool oldDefault = (ui.tableView->columnWidth(0) == 30);
|
||||
for (int i = 1; oldDefault && i < ui.tableView->model()->columnCount(); i++) {
|
||||
for (int i = 1; oldDefault && ui.tableView->model() && i < ui.tableView->model()->columnCount(); i++) {
|
||||
if (ui.tableView->columnWidth(i) != 80)
|
||||
oldDefault = false;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue