Skip to content
Permalink
Browse files
Fix for bug where projects loaded slowly
git-svn-id: http://svn.osgeo.org/qgis/trunk@8117 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent committed Feb 8, 2008
1 parent e200531 commit bcdcc68cd032af8c43a7152b500a262060390782
Showing with 8 additions and 1 deletion.
  1. +4 −0 src/app/qgisapp.cpp
  2. +4 −1 src/providers/postgres/qgspostgresprovider.cpp
@@ -2669,6 +2669,7 @@ void QgisApp::fileOpen()
delete openFileDialog;

// clear out any stuff from previous project
mMapCanvas->freeze(true);
removeAllLayers();

QgsProject::instance()->filename( fullPath );
@@ -2704,6 +2705,9 @@ void QgisApp::fileOpen()
tr("") + "\n" + QString::fromLocal8Bit( e.what() ) );
QgsDebugMsg("BAD LAYERS FOUND");
}

mMapCanvas->freeze(false);
mMapCanvas->refresh();
}

} // QgisApp::fileOpen
@@ -546,7 +546,10 @@ void QgsPostgresProvider::select(QgsAttributeList fetchAttributes,
ready = true;
PQexec(connection, (const char *)(declare.utf8()));

mFeatureQueue.empty();
while(!mFeatureQueue.empty())
{
mFeatureQueue.pop();
}
mFirstFetch = true;
}

0 comments on commit bcdcc68

Please sign in to comment.