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