# HG changeset patch # User Chris Cannam # Date 1213799653 0 # Node ID dc32f6e7839b004f4cd6e95566d1e3af618c30ca # Parent 66e01a6c95540824a81d63c127e0afce7c236d07 * minor enhancement to data edit make-current diff -r 66e01a6c9554 -r dc32f6e7839b widgets/ModelDataTableDialog.cpp --- a/widgets/ModelDataTableDialog.cpp Tue Jun 17 16:24:50 2008 +0000 +++ b/widgets/ModelDataTableDialog.cpp Wed Jun 18 14:34:13 2008 +0000 @@ -166,10 +166,13 @@ //!!! should not do any of this if an item in the given row is //already current; should not scroll if the current row is already //visible + std::cerr << "rh = " << rh << ", row = " << row << ", scrolling to " + << topRow << std::endl; m_tableView->scrollTo (m_table->getModelIndexForRow(topRow)); m_tableView->selectionModel()->setCurrentIndex - (m_table->getModelIndexForRow(row), QItemSelectionModel::Select); + (m_table->getModelIndexForRow(row), + QItemSelectionModel::ClearAndSelect | QItemSelectionModel::Rows); } void