Skip to content
Permalink
Browse files
Sort the list of tables alphabetically
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@5388 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
g_j_m committed Apr 28, 2006
1 parent 85f2f7e commit 07422b007315836cde39f355484d0d861eae3daa
Showing with 3 additions and 1 deletion.
  1. +1 −0 src/gui/qgsdbsourceselect.cpp
  2. +2 −1 src/gui/qgsdbsourceselect.h
@@ -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)
{
@@ -27,6 +27,7 @@ extern "C"
#include <QThread>

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

#include <QMap>
@@ -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);

0 comments on commit 07422b0

Please sign in to comment.