Fix browse table settings not being reapplied correctly

We have already fixed the rowid column from appearing after almost every
action in the Browse Data tab, for example in commit
39302f5b60.

This didn't fix every issue related to this problem though. Hidden
columns are shown too and modified column widths are reset. Also this
happens for different actions, for example the column widths are also
reset when sorting the view or when changing the filters. All these
problems are hopefully fixed by this commit.

See issue #1475.
This commit is contained in:
Martin Kleusberg
2018-08-10 13:52:39 +02:00
parent d3d9d10ecd
commit 2b6153d9b8
2 changed files with 50 additions and 41 deletions

View File

@@ -193,6 +193,8 @@ private:
StatementType getQueryType(const QString& query) const;
void applyBrowseTableSettings(const BrowseDataTableSettings& storedData, bool skipFilters = false);
protected:
void closeEvent(QCloseEvent *);
void dragEnterEvent(QDragEnterEvent *event);
@@ -277,7 +279,7 @@ private slots:
void showDataColumnPopupMenu(const QPoint& pos);
void showRecordPopupMenu(const QPoint& pos);
void editDataColumnDisplayFormat();
void showRowidColumn(bool show);
void showRowidColumn(bool show, bool skipFilters = false);
void browseDataSetTableEncoding(bool forAllTables = false);
void browseDataSetDefaultTableEncoding();
void fileOpenReadOnly();