[QGIS Commit] r13511 - trunk/qgis/src/app/postgres
svn_qgis at osgeo.org
svn_qgis at osgeo.org
Sun May 16 17:25:27 EDT 2010
Author: jef
Date: 2010-05-16 17:25:25 -0400 (Sun, 16 May 2010)
New Revision: 13511
Modified:
trunk/qgis/src/app/postgres/qgspgsourceselect.cpp
Log:
fix #2627
Modified: trunk/qgis/src/app/postgres/qgspgsourceselect.cpp
===================================================================
--- trunk/qgis/src/app/postgres/qgspgsourceselect.cpp 2010-05-16 21:00:01 UTC (rev 13510)
+++ trunk/qgis/src/app/postgres/qgspgsourceselect.cpp 2010-05-16 21:25:25 UTC (rev 13511)
@@ -134,8 +134,7 @@
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 @@
settings.remove( key + "/saveUsername" );
settings.remove( key + "/savePassword" );
settings.remove( key + "/save" );
+ settings.remove( key );
populateConnectionList();
}
More information about the QGIS-commit
mailing list