Actions
Bug #2815
closedWInPlaceEdit bug: Duplicated save/cancel buttons
Start date:
03/13/2014
Due date:
% Done:
0%
Estimated time:
Description
auto w = new Wt::WInPlaceEdit("text", parent);
w->setButtonsEnabled(true);
This duplicates the save/cancel buttons!
Workaround:
auto w = new Wt::WInPlaceEdit("text", parent);
w->setButtonsEnabled(false); // Workaround
w->setButtonsEnabled(true);
Regards,
Eivind Midtgård
Updated by Koen Deforche almost 11 years ago
- Status changed from New to Resolved
- Assignee set to Koen Deforche
- Target version set to 3.3.2
Hey,
So apparently WInPlaceEdit cannot handle setButtonsEnabled(true) if buttons are already enabled, and setButtonsEnabled(false) if buttons were already disabled.
I've fixed this, but in the mean-while I've got a better workaround for you. Do not call setButtonsEnabled() at all if you want them to be enabled, as this is the default.
Regards,
koen
Updated by Koen Deforche over 10 years ago
- Status changed from Resolved to Closed
Actions