mirror of
https://github.com/martinrotter/rssguard.git
synced 2025-02-02 10:27:15 +01:00
try to fix problems related to errorneous saving of message list header state
This commit is contained in:
parent
b81ac69578
commit
d824d04d12
@ -89,7 +89,10 @@ void MessagesView::restoreHeaderState(const QByteArray& data) {
|
|||||||
inn >> ss;
|
inn >> ss;
|
||||||
inn >> ish;
|
inn >> ish;
|
||||||
|
|
||||||
|
if (vi < header()->count()) {
|
||||||
header()->swapSections(header()->visualIndex(i), vi);
|
header()->swapSections(header()->visualIndex(i), vi);
|
||||||
|
}
|
||||||
|
|
||||||
header()->resizeSection(i, ss);
|
header()->resizeSection(i, ss);
|
||||||
header()->setSectionHidden(i, ish);
|
header()->setSectionHidden(i, ish);
|
||||||
}
|
}
|
||||||
@ -204,6 +207,7 @@ void MessagesView::setupAppearance() {
|
|||||||
setItemDelegate(new StyledItemDelegateWithoutFocus(this));
|
setItemDelegate(new StyledItemDelegateWithoutFocus(this));
|
||||||
header()->setDefaultSectionSize(MESSAGES_VIEW_DEFAULT_COL);
|
header()->setDefaultSectionSize(MESSAGES_VIEW_DEFAULT_COL);
|
||||||
header()->setMinimumSectionSize(MESSAGES_VIEW_MINIMUM_COL);
|
header()->setMinimumSectionSize(MESSAGES_VIEW_MINIMUM_COL);
|
||||||
|
header()->setFirstSectionMovable(true);
|
||||||
header()->setCascadingSectionResizes(false);
|
header()->setCascadingSectionResizes(false);
|
||||||
header()->setStretchLastSection(false);
|
header()->setStretchLastSection(false);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user