Skip to content

Commit 127efa1

Browse files
author
g_j_m
committedApr 28, 2006
Sort the list of tables alphabetically
git-svn-id: http://svn.osgeo.org/qgis/trunk@5388 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 3307d86 commit 127efa1

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed
 

‎src/gui/qgsdbsourceselect.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -395,6 +395,7 @@ void QgsDbSourceSelect::on_btnConnect_clicked()
395395
geomCol details;
396396
if (getGeometryColumnInfo(pd, details))
397397
{
398+
details.sort();
398399
geomCol::const_iterator iter = details.begin();
399400
for (; iter != details.end(); ++iter)
400401
{

‎src/gui/qgsdbsourceselect.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ extern "C"
2727
#include <QThread>
2828

2929
#include <vector>
30+
#include <list>
3031
#include <utility>
3132

3233
#include <QMap>
@@ -93,7 +94,7 @@ class QgsDbSourceSelect : public QDialog, private Ui::QgsDbSourceSelectBase
9394
private:
9495

9596
typedef std::pair<QString, QString> geomPair;
96-
typedef std::vector<geomPair > geomCol;
97+
typedef std::list<geomPair > geomCol;
9798

9899
bool getGeometryColumnInfo(PGconn *pd,
99100
geomCol& details);

0 commit comments

Comments
 (0)
Please sign in to comment.