Skip to content

Commit f686f8e

Browse files
author
jef
committedMay 16, 2010
fix #2627
git-svn-id: http://svn.osgeo.org/qgis/trunk@13511 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 5ef374d commit f686f8e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/app/postgres/qgspgsourceselect.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,7 @@ void QgsPgSourceSelect::on_btnDelete_clicked()
134134
QString key = "/Postgresql/connections/" + cmbConnections->currentText();
135135
QString msg = tr( "Are you sure you want to remove the %1 connection and all associated settings?" )
136136
.arg( cmbConnections->currentText() );
137-
QMessageBox::StandardButton result = QMessageBox::information( this, tr( "Confirm Delete" ), msg, QMessageBox::Ok | QMessageBox::Cancel );
138-
if ( result != QMessageBox::Ok )
137+
if ( QMessageBox::Ok != QMessageBox::information( this, tr( "Confirm Delete" ), msg, QMessageBox::Ok | QMessageBox::Cancel ) )
139138
return;
140139

141140
settings.remove( key + "/host" );
@@ -150,6 +149,7 @@ void QgsPgSourceSelect::on_btnDelete_clicked()
150149
settings.remove( key + "/saveUsername" );
151150
settings.remove( key + "/savePassword" );
152151
settings.remove( key + "/save" );
152+
settings.remove( key );
153153

154154
populateConnectionList();
155155
}

0 commit comments

Comments
 (0)
Please sign in to comment.