Skip to content

Commit

Permalink
sort the values in query builder
Browse files Browse the repository at this point in the history
after filling the values into the model, they are sorted ascending.
  • Loading branch information
signedav authored and m-kuhn committed Dec 15, 2017
1 parent 8ec16e2 commit ac6d251
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/gui/qgsquerybuilder.cpp
Expand Up @@ -159,6 +159,7 @@ void QgsQueryBuilder::fillValues( int idx, int limit )
mModelValues->insertRow( mModelValues->rowCount(), myItem );
QgsDebugMsg( QString( "Value is null: %1\nvalue: %2" ).arg( var.isNull() ).arg( var.isNull() ? nullValue : var.toString() ) );
}
mModelValues->sort( 0 );
}

void QgsQueryBuilder::btnSampleValues_clicked()
Expand Down

0 comments on commit ac6d251

Please sign in to comment.