Wim Dumon a écrit :
> Hello Jean-Michel,
>
> I just tested this with the current development version of Wt, and
> your code works: the dialog closes after clicking OK just once. You're
> using a pre-2.99 version of Wt (where the signals are still accessed
> by value rather than trough a function). Can you upgrade to the most
> recent version and retest? If not, what version of Wt are you using?
>
> Thank you,
> Wim.
>
> 2009/7/6 Jean-Michel Caricand <[email protected]>:
>   
>> 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
>>
>>     
>
> ------------------------------------------------------------------------------
> _______________________________________________
> witty-interest mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/witty-interest
>   
Hello Wim,

My version of Wt is 2.2.4. I'll try pre-2.99 tomorow.

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

Reply via email to