mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
1fc4fba69f
commit
2f86cbdc36
3 changed files with 552 additions and 598 deletions
|
@ -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));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue