]> git.saurik.com Git - wxWidgets.git/blobdiff - demos/dbbrowse/pgmctrl.cpp
browsedb.cpp dbtree.cpp dlguser.cpp dlguser.h pgmctrl.cpp
[wxWidgets.git] / demos / dbbrowse / pgmctrl.cpp
index e06dd291ad9b596558661c34d726be76c5c1392d..6e479b587a64296177dd8ee01cad20bc53e6d18e 100644 (file)
@@ -253,13 +253,14 @@ void PgmCtrl::OnUserPassword()
 {
  // wxMessageBox(SaveDSN);
  int i;
- //-------------------------------------------
- DlgUser *p_Dlg = new DlgUser(this, "Username and Password");
+ //--------------------------------------------
+ DlgUser *p_Dlg = new DlgUser(this,pDoc,"");
  //-------------------------------------------
  for (i=0;i<pDoc->i_DSN;i++)
  {
   if (SaveDSN == (pDoc->p_DSN+i)->Dsn)
   {
+   p_Dlg->pDoc       = pDoc;
    p_Dlg->s_DSN      = (pDoc->p_DSN+i)->Dsn;
    p_Dlg->s_User     = (pDoc->p_DSN+i)->Usr;
    p_Dlg->s_Password = (pDoc->p_DSN+i)->Pas;