Changeset c88be99 in subsurface


Ignore:
Timestamp:
Apr 18, 2017, 6:12:04 PM (6 months ago)
Author:
Dirk Hohndel <dirk@…>
Branches:
master
Children:
58a25d3
Parents:
972819d
git-author:
Miika Turkia <miika.turkia@…> (04/17/17 03:16:56)
git-committer:
Dirk Hohndel <dirk@…> (04/18/17 18:12:04)
Message:

Fix a crash on exit

Signed-off-by: Miika Turkia <miika.turkia@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • desktop-widgets/tableview.cpp

    r2f86cbdc rc88be99  
    6868        // remove the old default
    6969        bool oldDefault = (ui.tableView->columnWidth(0) == 30);
    70         for (int i = 1; oldDefault && i < ui.tableView->model()->columnCount(); i++) {
     70        for (int i = 1; oldDefault && ui.tableView->model() && i < ui.tableView->model()->columnCount(); i++) {
    7171                if (ui.tableView->columnWidth(i) != 80)
    7272                        oldDefault = false;
Note: See TracChangeset for help on using the changeset viewer.