Avoid saving a non populated header state for the table view headers
Some checks failed
Build / Initialization (push) Has been cancelled
Build / Code Format Validation (push) Has been cancelled
Build / Linux (Qt5) (push) Has been cancelled
Build / Linux (Qt6) (push) Has been cancelled
Build / Linux (Qt6 + 7zip) (push) Has been cancelled
Build / macOS (Qt6 Universal) (push) Has been cancelled
Build / macOS (Qt5) (push) Has been cancelled
Build / Windows x64 (Qt5) (push) Has been cancelled
Build / Windows x64 (Qt6) (push) Has been cancelled
Build / Windows ARM64 (Qt6) (push) Has been cancelled
Build / Windows x86 (Qt5) (push) Has been cancelled
Build / Docker amd64 Image (push) Has been cancelled
Build / Docker arm64 Image (push) Has been cancelled
Build / Publish Dev Builds (push) Has been cancelled
Build / Publish Release (push) Has been cancelled

This was causing problems loading content on the table view that could persist between sessions.
This commit is contained in:
luisangelsm
2025-12-29 19:06:04 +01:00
parent 52124567d8
commit 7927975902
4 changed files with 7 additions and 1 deletions

View File

@ -353,6 +353,10 @@ void ClassicComicsView::updateTableView(int i)
void ClassicComicsView::saveTableHeadersStatus()
{
if (model == nullptr) {
return;
}
settings->setValue(COMICS_VIEW_HEADERS, tableView->horizontalHeader()->saveState());
}