Skip to content
Permalink
Browse files

fix for bug #1756

git-svn-id: http://svn.osgeo.org/qgis/trunk@11041 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent
mhugent committed Jul 11, 2009
1 parent 5eac345 commit 4b277884bc1660abe6647741234b2ea0b2e7e2c0
Showing with 6 additions and 1 deletion.
  1. +6 −1 src/app/qgsnewconnection.cpp
@@ -31,7 +31,7 @@ extern "C"
}

QgsNewConnection::QgsNewConnection( QWidget *parent, const QString& connName, Qt::WFlags fl )
: QDialog( parent, fl )
: QDialog( parent, fl ), mOriginalConnName( connName )
{
setupUi( this );

@@ -141,6 +141,11 @@ void QgsNewConnection::saveConnection()
QSettings settings;
QString baseKey = "/PostgreSQL/connections/";
settings.setValue( baseKey + "selected", txtName->text() );
//delete original entry first
if ( !mOriginalConnName.isNull() && mOriginalConnName != txtName->text() )
{
settings.remove( baseKey + mOriginalConnName );
}
baseKey += txtName->text();
settings.setValue( baseKey + "/host", txtHost->text() );
settings.setValue( baseKey + "/database", txtDatabase->text() );

0 comments on commit 4b27788

Please sign in to comment.
You can’t perform that action at this time.