From 9c0ca5835a6ebd4ef6d5bd558658d594fccdf3b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Olivier=20Teuli=C3=A8re?= Date: Sun, 11 Jul 2010 20:58:21 +0000 Subject: [PATCH] Force the sort column when refreshing the results --- qt/training_widget.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/qt/training_widget.cpp b/qt/training_widget.cpp index 26bb2f6..4d87a3a 100644 --- a/qt/training_widget.cpp +++ b/qt/training_widget.cpp @@ -141,8 +141,12 @@ void TrainingWidget::updateModel() return; } + // Clear the results m_model->removeRows(0, m_model->rowCount()); + // Force the sort column + treeViewResults->sortByColumn(2); + if (m_game == NULL) return;