From: vsr Date: Thu, 9 Aug 2012 05:48:17 +0000 (+0000) Subject: 0021707: [CEA 585] Sort in object browser should be ascending by default X-Git-Tag: V6_6_0a1~52 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=63b259e2fb2856a90bd493a50125202905359802;p=modules%2Fgui.git 0021707: [CEA 585] Sort in object browser should be ascending by default --- 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 {