Skip to content

Commit 9eec795

Browse files
author
g_j_m
committed
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/qgis@4932 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 212930b commit 9eec795

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/gui/qgisapp.cpp

+3-2
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ void QgisApp::createActions()
402402
mActionFileExit= new QAction(QIcon(myIconPath+"/mActionFileExit.png"), tr("Exit"), this);
403403
mActionFileExit->setShortcut(tr("Ctrl+Q"));
404404
mActionFileExit->setStatusTip(tr("Exit QGIS"));
405-
connect(mActionFileExit, SIGNAL(triggered()), qApp, SLOT(quit()));
405+
connect(mActionFileExit, SIGNAL(triggered()), this, SLOT(fileExit()));
406406
//
407407
// Layer Menu Related Items
408408
//
@@ -2061,6 +2061,7 @@ void QgisApp::addDatabaseLayer()
20612061
statusBar()->message(mMapCanvas->extent().stringRep(2));
20622062
}
20632063

2064+
delete dbs;
20642065
qApp->processEvents();
20652066
mMapCanvas->freeze(false);
20662067
// 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 )
24102411
void QgisApp::fileExit()
24112412
{
24122413
removeAllLayers();
2413-
QApplication::exit();
2414+
qApp->exit(0);
24142415
}
24152416

24162417

0 commit comments

Comments
 (0)