Skip to content

Commit 72c04ce

Browse files
committedJan 23, 2012
implement #4823
1 parent 13ef543 commit 72c04ce

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed
 

‎src/providers/postgres/qgspgnewconnection.cpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,15 @@ void QgsPgNewConnection::accept()
9494
QString baseKey = "/PostgreSQL/connections/";
9595
settings.setValue( baseKey + "selected", txtName->text() );
9696

97+
if ( chkStorePassword->isChecked() &&
98+
QMessageBox::question( this,
99+
tr( "Saving passwords" ),
100+
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" ),
101+
QMessageBox::Ok | QMessageBox::Cancel ) == QMessageBox::Cancel )
102+
{
103+
return;
104+
}
105+
97106
// warn if entry was renamed to an existing connection
98107
if (( mOriginalConnName.isNull() || mOriginalConnName != txtName->text() ) &&
99108
( settings.contains( baseKey + txtName->text() + "/service" ) ||

0 commit comments

Comments
 (0)
Please sign in to comment.