Skip to content

Commit

Permalink
fix #2627
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk@13511 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed May 16, 2010
1 parent 5ef374d commit f686f8e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/postgres/qgspgsourceselect.cpp
Expand Up @@ -134,8 +134,7 @@ void QgsPgSourceSelect::on_btnDelete_clicked()
QString key = "/Postgresql/connections/" + cmbConnections->currentText();
QString msg = tr( "Are you sure you want to remove the %1 connection and all associated settings?" )
.arg( cmbConnections->currentText() );
QMessageBox::StandardButton result = QMessageBox::information( this, tr( "Confirm Delete" ), msg, QMessageBox::Ok | QMessageBox::Cancel );
if ( result != QMessageBox::Ok )
if ( QMessageBox::Ok != QMessageBox::information( this, tr( "Confirm Delete" ), msg, QMessageBox::Ok | QMessageBox::Cancel ) )
return;

settings.remove( key + "/host" );
Expand All @@ -150,6 +149,7 @@ void QgsPgSourceSelect::on_btnDelete_clicked()
settings.remove( key + "/saveUsername" );
settings.remove( key + "/savePassword" );
settings.remove( key + "/save" );
settings.remove( key );

populateConnectionList();
}
Expand Down

0 comments on commit f686f8e

Please sign in to comment.