Fix hidden columns being unhidden in Browse Data tab when sorting

This is required for Qt version < 5.10. For Qt versions >= 5.10 the
unhiding of all columns before rehiding the desired ones does nothing
because there the table view doesn't store its state anymore. And when
it does nothing we don't change the state of our view settings which in
turn triggers the mentioned problem.

See issue #1475.
This commit is contained in:
Martin Kleusberg
2018-08-12 13:46:12 +02:00
parent 96ca599479
commit b219edbbfb
2 changed files with 6 additions and 2 deletions

View File

@@ -193,7 +193,7 @@ private:
StatementType getQueryType(const QString& query) const;
void applyBrowseTableSettings(const BrowseDataTableSettings& storedData, bool skipFilters = false);
void applyBrowseTableSettings(BrowseDataTableSettings storedData, bool skipFilters = false);
protected:
void closeEvent(QCloseEvent *);