Index: ossp-pkg/as/as-gui/as_table.cpp RCS File: /v/ossp/cvs/ossp-pkg/as/as-gui/as_table.cpp,v rcsdiff -q -kk '-r1.18' '-r1.19' -u '/v/ossp/cvs/ossp-pkg/as/as-gui/as_table.cpp,v' 2>/dev/null --- as_table.cpp 2002/12/20 17:42:10 1.18 +++ as_table.cpp 2002/12/20 18:02:36 1.19 @@ -125,6 +125,11 @@ this->setSortcol(nCol); QTable::sortColumn(nCol, this->getSortdir(), true); + // Move and display the selection highlight + this->removeSelection(this->currentSelection()); + this->selectRow(this->currentRow()); + this->ensureCellVisible(this->currentRow(), 0); + // Write nonsaving line numbers for all rows for (int nIter = this->numRows() - 1; nIter >= 0; nIter--) this->setText(nIter, TITRAQ_IDXLINE, QString::number(nIter).rightJustify(4, QChar('0')));