Hello Jean-Michel,
I had similar issue. I think i had the issue when i tried to display
another MessageBox
inside if (dialog.exec() == Wt::WDialog::Accepted) { },
Check whether you are executing another message box or another pop up inside
authenticate( user.text(), password.text() );
On Mon, Jul 6, 2009 at 7:03 PM, Jean-Michel Caricand <
[email protected]> wrote:
> Hi all,
>
> I created this method to authenticate my users :
>
> void BibtexUpload::doLogin()
> {
> Wt::WDialog dialog("Connexion");
>
> new Wt::WText("User: ", dialog.contents());
> Wt::WLineEdit user(dialog.contents());
> new Wt::WBreak(dialog.contents());
> new Wt::WText("Password: ", dialog.contents());
> Wt::WLineEdit password(dialog.contents());
> new Wt::WBreak(dialog.contents());
>
> Wt::WPushButton ok("Ok", dialog.contents());
>
> ok.clicked.connect(SLOT(&dialog, Wt::WDialog::accept));
>
> if (dialog.exec() == Wt::WDialog::Accepted) {
> authenticate( user.text(), password.text() );
> }
> }
>
> I must click twice on ok button to close my dialog. Why ?
>
> Thanks.
>
> --
> Jean-Michel Caricand
>
> Laboratoire Informatique de l'Université de Franche-Comté
> 16 route de Gray
> 25000 Besançon
>
> Tél : 03 81 66 20 63
> Courriel : [email protected]
>
>
>
> ------------------------------------------------------------------------------
> _______________________________________________
> witty-interest mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/witty-interest
>
--
With Regards,
Sabir
+91 9895365676
Success is mostly in the attitude. “I always felt that my greatest asset was
not my physical ability, it was my mental ability.”
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest