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,
I can't build git version of Wt with boost 1.39 : /home/jmcaricand/wt/src/http/Server.C: In member function 'void http::server::Server::select_read(int)': /home/jmcaricand/wt/src/http/Server.C:295:24: erreur: 'null_buffers' is not a member of 'asio' /home/jmcaricand/wt/src/http/Server.C: In member function 'void http::server::Server::select_write(int)': /home/jmcaricand/wt/src/http/Server.C:325:23: erreur: 'null_buffers' is not a member of 'asio' make[2]: *** [src/http/CMakeFiles/wthttp.dir/Server.o] Erreur 1 Which boost version do you have to build Wt ? 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] ------------------------------------------------------------------------------ Enter the BlackBerry Developer Challenge This is your chance to win up to $100,000 in prizes! For a limited time, vendors submitting new applications to BlackBerry App World(TM) will have the opportunity to enter the BlackBerry Developer Challenge. See full prize details at: http://p.sf.net/sfu/blackberry _______________________________________________ witty-interest mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/witty-interest
