From 63b259e2fb2856a90bd493a50125202905359802 Mon Sep 17 00:00:00 2001 From: vsr Date: Thu, 9 Aug 2012 05:48:17 +0000 Subject: [PATCH] 0021707: [CEA 585] Sort in object browser should be ascending by default --- src/Qtx/QtxTreeView.cxx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Qtx/QtxTreeView.cxx b/src/Qtx/QtxTreeView.cxx index b12d039e9..5c4f3c665 100644 --- a/src/Qtx/QtxTreeView.cxx +++ b/src/Qtx/QtxTreeView.cxx @@ -142,6 +142,7 @@ void QtxTreeView::Header::contextMenuEvent( QContextMenuEvent* e ) view->emitSortingEnabled( a->isChecked() ); if ( a->isChecked() ) { connect( this, SIGNAL( sectionClicked( int ) ), view, SLOT( onHeaderClicked( int ) ) ); + setSortIndicator( 0, Qt::AscendingOrder ); view->sortByColumn( sortIndicatorSection(), sortIndicatorOrder() ); } else { -- 2.39.2