Skip to content

Commit 4325352

Browse files
author
gsherman
committedApr 17, 2005
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
1 parent 1634528 commit 4325352

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed
 

‎ChangeLog

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
------------------------------------------------------------------------------
33
Version 0.6 'Simon' .... development version
44
QGIS Change Log
5+
2005-04-16 [ges] 0.6.0devel16
6+
** Fixed bug 1177637 that prevented a PostgreSQL connection from being
7+
completely deleted
58
2005-04-14 [timlinux] 0.6devel15
69
** Wired up move first and move last buttons on custom projection dialog
710
2005-04-14 [timlinux] 0.6devel14

‎configure.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ dnl ---------------------------------------------------------------------------
2626
MAJOR_VERSION=0
2727
MINOR_VERSION=6
2828
MICRO_VERSION=0
29-
EXTRA_VERSION=15
29+
EXTRA_VERSION=16
3030
if test $EXTRA_VERSION -eq 0; then
3131
VERSION=${MAJOR_VERSION}.${MINOR_VERSION}.${MICRO_VERSION}
3232
else

‎src/qgsdbsourceselect.cpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,11 +96,20 @@ void QgsDbSourceSelect::deleteConnection()
9696
settings.removeEntry(key + "/database");
9797
settings.removeEntry(key + "/username");
9898
settings.removeEntry(key + "/password");
99+
settings.removeEntry(key + "/port");
100+
settings.removeEntry(key + "/save");
101+
settings.removeEntry(key);
99102
//if(!success){
100103
// QMessageBox::information(this,"Unable to Remove","Unable to remove the connection " + cmbConnections->currentText());
101104
//}
102105
cmbConnections->removeItem(cmbConnections->currentItem()); // populateConnectionList();
103106
}
107+
// Select the first connection in the list, checking to make sure there is
108+
// at least one item to select
109+
if(cmbConnections->count() > 0)
110+
{
111+
cmbConnections->setCurrentItem(0);
112+
}
104113
}
105114

106115
void QgsDbSourceSelect::addTables()

0 commit comments

Comments
 (0)
Please sign in to comment.