[DEVELOPMENT ENVIRONMENT]

* BUG: Clear database passwords when opening a new project.


git-svn-id: svn://localhost/gambas/trunk@2157 867c0c6c-44f3-4631-809d-bfa615b0a4ec
This commit is contained in:
Benoît Minisini 2009-07-23 23:57:15 +00:00
parent ca1bdc4b43
commit e340d5271c
2 changed files with 6 additions and 4 deletions

View file

@ -1,6 +1,6 @@
' Gambas module file
Private $cPassword As New Collection
Public Password As New Collection
Public Sub InitFrom(hConn As Connection, hConfig As Object, sName As String, Optional bWithDatabase As Boolean)
@ -25,11 +25,11 @@ Public Sub LoadPassword(sName As String, bDesktop As Boolean) As String
Dim sPassword As String
sPassword = $cPassword[sName]
sPassword = Password[sName]
If Not sPassword Then
If bDesktop Then
sPassword = Desktop.Passwords[Project.Name &/ sName]
$cPassword[sName] = sPassword
Password[sName] = sPassword
Endif
Endif
@ -39,7 +39,7 @@ End
Public Sub SavePassword(sName As String, sPassword As String, bDesktop As Boolean)
$cPassword[sName] = sPassword
Password[sName] = sPassword
If sPassword Then Desktop.Passwords[Project.Name &/ sName] = sPassword
End

View file

@ -366,6 +366,8 @@ Public Function Open(sDir As String) As Boolean
Inc Project.TimeStamp
MConnection.Password.Clear
Refresh
DefineStartup(Startup, True)