Skip to content

Commit dd657c9

Browse files
author
g_j_m
committedMar 1, 2006
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
1 parent 08bdd1b commit dd657c9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed
 

‎src/gui/qgisapp.cpp

Lines changed: 3 additions & 2 deletions
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)
Please sign in to comment.