X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/07296f0b12657b0f2e28d169dd64d11e901eab8c..b54f1155cb8ebab85b8d452333408abc1f518d73:/demos/dbbrowse/pgmctrl.cpp diff --git a/demos/dbbrowse/pgmctrl.cpp b/demos/dbbrowse/pgmctrl.cpp index e06dd291ad..6e479b587a 100644 --- a/demos/dbbrowse/pgmctrl.cpp +++ b/demos/dbbrowse/pgmctrl.cpp @@ -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;ii_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;