Fix for bug 1177637 that prevented complete deletion of a PostgreSQL

connection.


git-svn-id: http://svn.osgeo.org/qgis/trunk@3176 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
gsherman 2005-04-17 01:51:56 +00:00
parent 1634528076
commit 4325352001
3 changed files with 13 additions and 1 deletions

View File

@ -2,6 +2,9 @@
------------------------------------------------------------------------------
Version 0.6 'Simon' .... development version
QGIS Change Log
2005-04-16 [ges] 0.6.0devel16
** Fixed bug 1177637 that prevented a PostgreSQL connection from being
completely deleted
2005-04-14 [timlinux] 0.6devel15
** Wired up move first and move last buttons on custom projection dialog
2005-04-14 [timlinux] 0.6devel14

View File

@ -26,7 +26,7 @@ dnl ---------------------------------------------------------------------------
MAJOR_VERSION=0
MINOR_VERSION=6
MICRO_VERSION=0
EXTRA_VERSION=15
EXTRA_VERSION=16
if test $EXTRA_VERSION -eq 0; then
VERSION=${MAJOR_VERSION}.${MINOR_VERSION}.${MICRO_VERSION}
else

View File

@ -96,11 +96,20 @@ void QgsDbSourceSelect::deleteConnection()
settings.removeEntry(key + "/database");
settings.removeEntry(key + "/username");
settings.removeEntry(key + "/password");
settings.removeEntry(key + "/port");
settings.removeEntry(key + "/save");
settings.removeEntry(key);
//if(!success){
// QMessageBox::information(this,"Unable to Remove","Unable to remove the connection " + cmbConnections->currentText());
//}
cmbConnections->removeItem(cmbConnections->currentItem()); // populateConnectionList();
}
// Select the first connection in the list, checking to make sure there is
// at least one item to select
if(cmbConnections->count() > 0)
{
cmbConnections->setCurrentItem(0);
}
}
void QgsDbSourceSelect::addTables()