Skip to content
Permalink
Browse files
fix #2627
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 f686f8e0491f567ec20a68fe6836bc6656d1ea3e
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/app/postgres/qgspgsourceselect.cpp
@@ -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" );
@@ -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();
}

0 comments on commit f686f8e

Please sign in to comment.