Clean up some widgets

Simplify logic of handling the Message that this
dive is being modified.

Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Tomaz Canabrava 2017-04-04 19:50:46 +02:00 committed by Dirk Hohndel
parent 1fc4fba69f
commit 2f86cbdc36
3 changed files with 552 additions and 598 deletions

View file

@ -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));