mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-17 00:09:36 -04:00
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:
parent
1634528076
commit
4325352001
@ -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
|
||||
|
@ -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
|
||||
|
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user