Skip to content
Permalink
Browse files

Fix for bug that prevented postgis layers from being displayed in the…

… selector

dialog. This was due to the number of columns being explicitly specified prior
to adding items. The previous implementation works under Qt 4.1.1 but not under
Qt 4.1.0. This fix needs to be tested under 4.1.1 to make sure its compatible.



git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@5032 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
gsherman
gsherman committed Mar 15, 2006
1 parent 275005b commit f9257e999b5be5f09a9a01cbbd95e49ebbc6d2a3
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/gui/qgsdbsourceselect.cpp
@@ -105,6 +105,8 @@ QgsDbSourceSelect::QgsDbSourceSelect(QgisApp *app, Qt::WFlags fl)

// Do some things that couldn't be done in designer
lstTables->horizontalHeader()->setStretchLastSection(true);
// Set the column count to 3 for the type, name, and sql
lstTables->setColumnCount(3);
QStringList labels;
labels += tr("Type"); labels += tr("Name"); labels += tr("Sql");
lstTables->setHorizontalHeaderLabels(labels);

0 comments on commit f9257e9

Please sign in to comment.
You can’t perform that action at this time.