Skip to content

Commit

Permalink
Sort the list of tables alphabetically
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk@5388 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
g_j_m committed Apr 28, 2006
1 parent 3307d86 commit 127efa1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/gui/qgsdbsourceselect.cpp
Expand Up @@ -395,6 +395,7 @@ void QgsDbSourceSelect::on_btnConnect_clicked()
geomCol details;
if (getGeometryColumnInfo(pd, details))
{
details.sort();
geomCol::const_iterator iter = details.begin();
for (; iter != details.end(); ++iter)
{
Expand Down
3 changes: 2 additions & 1 deletion src/gui/qgsdbsourceselect.h
Expand Up @@ -27,6 +27,7 @@ extern "C"
#include <QThread>

#include <vector>
#include <list>
#include <utility>

#include <QMap>
Expand Down Expand Up @@ -93,7 +94,7 @@ class QgsDbSourceSelect : public QDialog, private Ui::QgsDbSourceSelectBase
private:

typedef std::pair<QString, QString> geomPair;
typedef std::vector<geomPair > geomCol;
typedef std::list<geomPair > geomCol;

bool getGeometryColumnInfo(PGconn *pd,
geomCol& details);
Expand Down

0 comments on commit 127efa1

Please sign in to comment.