Skip to content

Commit fd07c21

Browse files
author
jef
committed
PostGIS layer selection:
- actually do the geometry type lookup threaded - combobox removed and replaced with multiple rows, one each geometry type - add wait cursors while looking up tables and inserting layers git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@7627 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 2e0da00 commit fd07c21

File tree

3 files changed

+113
-130
lines changed

3 files changed

+113
-130
lines changed

src/app/qgisapp.cpp

+6-2
Original file line numberDiff line numberDiff line change
@@ -2071,9 +2071,11 @@ void QgisApp::addDatabaseLayer()
20712071
// add files to the map canvas
20722072
QStringList tables = dbs->selectedTables();
20732073

2074+
QApplication::setOverrideCursor(Qt::waitCursor);
2075+
20742076
QString connInfo = dbs->connInfo();
20752077
// for each selected table, connect to the database, parse the WKT geometry,
2076-
// and build a cavnasitem for it
2078+
// and build a canvasitem for it
20772079
// readWKB(connInfo,tables);
20782080
QStringList::Iterator it = tables.begin();
20792081
while (it != tables.end())
@@ -2086,7 +2088,6 @@ void QgisApp::addDatabaseLayer()
20862088
{
20872089
// register this layer with the central layers registry
20882090
QgsMapLayerRegistry::instance()->addMapLayer(layer);
2089-
20902091
}
20912092
else
20922093
{
@@ -2097,6 +2098,9 @@ void QgisApp::addDatabaseLayer()
20972098
//qWarning("incrementing iterator");
20982099
++it;
20992100
}
2101+
2102+
QApplication::restoreOverrideCursor();
2103+
21002104
statusBar()->message(mMapCanvas->extent().stringRep(2));
21012105
}
21022106

0 commit comments

Comments
 (0)