mirror of
https://github.com/YACReader/yacreader
synced 2026-02-14 11:03:02 -05:00
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
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:
@ -6,6 +6,7 @@ Version counting is based on semantic versioning (Major.Feature.Patch)
|
|||||||
|
|
||||||
### YACReaderLibrary
|
### YACReaderLibrary
|
||||||
* Fix table view last section stretch. Before it was only working randomly.
|
* Fix table view last section stretch. Before it was only working randomly.
|
||||||
|
* Fix empty table view caused by wront state being saved. You'll need to reconfigure the table view headers to your liking after this.
|
||||||
|
|
||||||
## 9.16.2
|
## 9.16.2
|
||||||
|
|
||||||
|
|||||||
@ -353,6 +353,10 @@ void ClassicComicsView::updateTableView(int i)
|
|||||||
|
|
||||||
void ClassicComicsView::saveTableHeadersStatus()
|
void ClassicComicsView::saveTableHeadersStatus()
|
||||||
{
|
{
|
||||||
|
if (model == nullptr) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
settings->setValue(COMICS_VIEW_HEADERS, tableView->horizontalHeader()->saveState());
|
settings->setValue(COMICS_VIEW_HEADERS, tableView->horizontalHeader()->saveState());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -57,7 +57,7 @@
|
|||||||
|
|
||||||
#define MAIN_WINDOW_GEOMETRY "MAIN_WINDOW_GEOMETRY"
|
#define MAIN_WINDOW_GEOMETRY "MAIN_WINDOW_GEOMETRY"
|
||||||
#define MAIN_WINDOW_STATE "MAIN_WINDOW_STATE"
|
#define MAIN_WINDOW_STATE "MAIN_WINDOW_STATE"
|
||||||
#define COMICS_VIEW_HEADERS "COMICS_VIEW_HEADERS_NEW" // VALUE CHANGED IN 9.14 to avoid issues with previous versions
|
#define COMICS_VIEW_HEADERS "COMICS_VIEW_HEADERS_9.16.3" // VALUE CHANGED IN 9.16.3 to avoid issues with previous versions
|
||||||
#define COMICS_VIEW_HEADERS_GEOMETRY "COMICS_VIEW_HEADERS_GEOMETRY"
|
#define COMICS_VIEW_HEADERS_GEOMETRY "COMICS_VIEW_HEADERS_GEOMETRY"
|
||||||
#define COMICS_VIEW_STATUS "COMICS_VIEW_STATUS"
|
#define COMICS_VIEW_STATUS "COMICS_VIEW_STATUS"
|
||||||
#define COMICS_VIEW_FLOW_SPLITTER_STATUS "COMICS_VIEW_FLOW_SPLITTER_STATUS"
|
#define COMICS_VIEW_FLOW_SPLITTER_STATUS "COMICS_VIEW_FLOW_SPLITTER_STATUS"
|
||||||
|
|||||||
@ -72,6 +72,7 @@ YACReader::WhatsNewDialog::WhatsNewDialog(QWidget *parent)
|
|||||||
" • Prevent crash when opening the folders context menu if a folder is not selected. (new in 9.16.2)<br/>"
|
" • Prevent crash when opening the folders context menu if a folder is not selected. (new in 9.16.2)<br/>"
|
||||||
" • Fix crash when using the `Set type` menu on libraries. (new in 9.16.2)<br/>"
|
" • Fix crash when using the `Set type` menu on libraries. (new in 9.16.2)<br/>"
|
||||||
" • Fix table view last section stretch. Before it was only working randomly. (new in 9.16.3)<br/>"
|
" • Fix table view last section stretch. Before it was only working randomly. (new in 9.16.3)<br/>"
|
||||||
|
" • Fix empty table view caused by wront state being saved. You'll need to reconfigure the table view headers to your liking after this udpate. (new in 9.16.3)<br/>"
|
||||||
"<br/>"
|
"<br/>"
|
||||||
"<span style=\"font-weight:600\">YACReaderLibraryServer</span><br/>"
|
"<span style=\"font-weight:600\">YACReaderLibraryServer</span><br/>"
|
||||||
" • Log libraries validation when the app starts<br/>"
|
" • Log libraries validation when the app starts<br/>"
|
||||||
|
|||||||
Reference in New Issue
Block a user