Skip to content

Commit f9257e9

Browse files
author
gsherman
committed
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
1 parent 275005b commit f9257e9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/gui/qgsdbsourceselect.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,8 @@ QgsDbSourceSelect::QgsDbSourceSelect(QgisApp *app, Qt::WFlags fl)
105105

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

0 commit comments

Comments
 (0)