Using wt-3.1.1b on Mac OS X 10.6.2, with Firefox 3.6

My application creates dialogs using code of the form:
        WDialog dialog;

        dialog.setWindowTitle( "Edit Processor Parameters" );
        WVBoxLayout *contentsLayout = new WVBoxLayout();
        dialog.contents()->setLayout( contentsLayout );

        WGridLayout *grid = new WGridLayout();
        contentsLayout->addLayout( grid, 1, Wt::AlignTop );
        int row = 0;
        int col = 0;
        boost::format fmt( "%.1f" );
        WText *label = new WText( "Name" );
        grid->addWidget( label, row, 0 );

        ++row;

        WPushButton *ok = new WPushButton( "OK" );
        WPushButton *cancel = new WPushButton( "Cancel" );
        grid->addWidget( ok, row, 0 );
        grid->addWidget( cancel, row, 1 );

        ok->clicked().connect( SLOT(&dialog, WDialog::accept) );
        cancel->clicked().connect( SLOT(&dialog, WDialog::reject) );


        if (dialog.exec() == WDialog::Accepted) {
                AcceptChanges( name );
                return true;
        }

Sometimes it takes multiple clicks on an <OK> or <Cancel> button to dismiss the 
dialog. 

Based on the debug messages I see in the console:
128.117.85.129 - - [2010-Mar-17 09:45:26.832800] "POST 
/?wtd=GqeTDFP2FwkaJicJ&rand=929 HTTP/1.1" 200 3151

I'm fairly certain that Wt is seeing the clicks, but the dialog doesn't 
disappear.  

Clearly, this inconsistent behavior won't make my users very happy - any ideas 
on how to fix it?


------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to