Skip to content

Commit

Permalink
Quitting qgis wasn't removing the map layers first (and hence quite
Browse files Browse the repository at this point in the history
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 dd657c9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/gui/qgisapp.cpp
Expand Up @@ -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
//
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -2410,7 +2411,7 @@ findLayers_( QString const & fileFilters, list<QDomNode> const & layerNodes )
void QgisApp::fileExit()
{
removeAllLayers();
QApplication::exit();
qApp->exit(0);
}


Expand Down

0 comments on commit dd657c9

Please sign in to comment.