Skip to content
Permalink
Browse files
Quitting qgis wasn't removing the map layers first (and hence quite
with live postgres connections)

The database source select dialog box wasn't being deleted when
finished with, and hence left a live postgres connetion around

These fixes will eliminate the 'unexpected EOF on client connection'
message in the postgres logs.


git-svn-id: http://svn.osgeo.org/qgis/trunk@4932 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
g_j_m committed Mar 1, 2006
1 parent 08bdd1b commit dd657c9e9da2dae392c51347d5f658499dfefd4e
Showing with 3 additions and 2 deletions.
  1. +3 −2 src/gui/qgisapp.cpp
@@ -402,7 +402,7 @@ void QgisApp::createActions()
mActionFileExit= new QAction(QIcon(myIconPath+"/mActionFileExit.png"), tr("Exit"), this);
mActionFileExit->setShortcut(tr("Ctrl+Q"));
mActionFileExit->setStatusTip(tr("Exit QGIS"));
connect(mActionFileExit, SIGNAL(triggered()), qApp, SLOT(quit()));
connect(mActionFileExit, SIGNAL(triggered()), this, SLOT(fileExit()));
//
// Layer Menu Related Items
//
@@ -2061,6 +2061,7 @@ void QgisApp::addDatabaseLayer()
statusBar()->message(mMapCanvas->extent().stringRep(2));
}

delete dbs;
qApp->processEvents();
mMapCanvas->freeze(false);
// For Qt4, deprecate direct calling of render(). Let render() be called by the
@@ -2410,7 +2411,7 @@ findLayers_( QString const & fileFilters, list<QDomNode> const & layerNodes )
void QgisApp::fileExit()
{
removeAllLayers();
QApplication::exit();
qApp->exit(0);
}


0 comments on commit dd657c9

Please sign in to comment.