Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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
  • Loading branch information
gsherman committed Apr 17, 2005
1 parent 1634528 commit 4325352
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
3 changes: 3 additions & 0 deletions ChangeLog
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion configure.in
Expand Up @@ -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
Expand Down
9 changes: 9 additions & 0 deletions src/qgsdbsourceselect.cpp
Expand Up @@ -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()
Expand Down

0 comments on commit 4325352

Please sign in to comment.