Skip to content
Permalink
Browse files
implement #4823
  • Loading branch information
jef-n committed Jan 23, 2012
1 parent 13ef543 commit 72c04ce8f8b66e9f8845e2c8f1a15007a57cab5f
Showing with 9 additions and 0 deletions.
  1. +9 −0 src/providers/postgres/qgspgnewconnection.cpp
@@ -94,6 +94,15 @@ void QgsPgNewConnection::accept()
QString baseKey = "/PostgreSQL/connections/";
settings.setValue( baseKey + "selected", txtName->text() );

if ( chkStorePassword->isChecked() &&
QMessageBox::question( this,
tr( "Saving passwords" ),
tr( "WARNING: You have opted to save your password. It will be stored in plain text in your project files and in your home directory on Unix-like systems, or in your user profile on Windows. If you do not want this to happen, please press the Cancel button.\n" ),
QMessageBox::Ok | QMessageBox::Cancel ) == QMessageBox::Cancel )
{
return;
}

// warn if entry was renamed to an existing connection
if (( mOriginalConnName.isNull() || mOriginalConnName != txtName->text() ) &&
( settings.contains( baseKey + txtName->text() + "/service" ) ||

0 comments on commit 72c04ce

Please sign in to comment.