Skip to content

Commit 14f18bd

Browse files
committedDec 27, 2016
Make Select by Form default instead of By Expression
Since it's more user-friendly for beginners
1 parent 1f37238 commit 14f18bd

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed
 

‎src/app/qgisapp.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2112,10 +2112,10 @@ void QgisApp::createToolBars()
21122112
QToolButton *bt = new QToolButton( mAttributesToolBar );
21132113
bt->setPopupMode( QToolButton::MenuButtonPopup );
21142114
QList<QAction*> selectActions;
2115-
selectActions << mActionSelectByExpression << mActionSelectByForm << mActionSelectAll
2115+
selectActions << mActionSelectByForm << mActionSelectByExpression << mActionSelectAll
21162116
<< mActionInvertSelection;
21172117
bt->addActions( selectActions );
2118-
bt->setDefaultAction( mActionSelectByExpression );
2118+
bt->setDefaultAction( mActionSelectByForm );
21192119
QAction* selectionAction = mAttributesToolBar->insertWidget( mActionDeselectAll, bt );
21202120
selectionAction->setObjectName( QStringLiteral( "ActionSelection" ) );
21212121

‎src/ui/qgisapp.ui

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@
7272
<addaction name="mActionSelectPolygon"/>
7373
<addaction name="mActionSelectFreehand"/>
7474
<addaction name="mActionSelectRadius"/>
75-
<addaction name="mActionSelectByExpression"/>
7675
<addaction name="mActionSelectByForm"/>
76+
<addaction name="mActionSelectByExpression"/>
7777
<addaction name="mActionDeselectAll"/>
7878
<addaction name="mActionSelectAll"/>
7979
<addaction name="mActionInvertSelection"/>

1 commit comments

Comments
 (1)

nirvn commented on Dec 27, 2016

@nirvn
Contributor

Excellent. What about giving select by expression a keyboard shortcut similar select by form? Ctrl+F3?

Please sign in to comment.