Skip to content

Commit

Permalink
Fix for bug that prevented postgis layers from being displayed in the…
Browse files Browse the repository at this point in the history
… 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@5032 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
gsherman committed Mar 15, 2006
1 parent 3d7cfa1 commit 71da112
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/gui/qgsdbsourceselect.cpp
Expand Up @@ -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);
Expand Down

0 comments on commit 71da112

Please sign in to comment.