GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — databrowser: Let the view update the model when sorting · Processoriented/sqlitebrowser@0ddf048

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • src
    • MainWindow.cpp
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎src/MainWindow.cpp‎

Copy file name to clipboardExpand all lines: src/MainWindow.cpp
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1133,7 +1133,7 @@ void MainWindow::browseTableHeaderClicked(int logicalindex)
11331133
// instead of the column name we just use the column index, +2 because 'rowid, *' is the projection
11341134
curBrowseOrderByIndex = logicalindex;
11351135
curBrowseOrderByMode = curBrowseOrderByMode == Qt::AscendingOrder ? Qt::DescendingOrder : Qt::AscendingOrder;
1136-
m_browseTableModel->sort(curBrowseOrderByIndex, curBrowseOrderByMode);
1136+
ui->dataTable->sortByColumn(curBrowseOrderByIndex, curBrowseOrderByMode);
11371137

11381138
// select the first item in the column so the header is bold
11391139
// we might try to select the last selected item

0 commit comments

Comments
0 (0)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.