Project

General

Profile

Bug #2646 ยป 0001-Do-not-add-unrequested-WDialog-footer.patch

Bruce Toll, 02/09/2014 11:21 PM

View differences:

src/Wt/WDialog.C
void WDialog::onDefaultPressed()
{
DialogCover *c = cover();
if (c && c->isTopDialogRendered(this)) {
if (footer_ && c && c->isTopDialogRendered(this)) {
for (int i = 0; i < footer()->count(); ++i) {
WPushButton *b = dynamic_cast<WPushButton *>(footer()->widget(i));
if (b && b->isDefault()) {
......
if (!hidden) {
WApplication *app = WApplication::instance();
for (int i = 0; i < footer()->count(); ++i) {
for (int i = 0; i < (footer_ ? footer()->count() : 0); ++i) {
WPushButton *b = dynamic_cast<WPushButton *>(footer()->widget(i));
if (b && b->isDefault()) {
enterConnection1_ = app->globalEnterPressed()
    (1-1/1)