Actions
Bug #2815
closed
KD
WInPlaceEdit bug: Duplicated save/cancel buttons
Bug #2815:
WInPlaceEdit 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
KD Updated by Koen Deforche over 12 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
KD Updated by Koen Deforche over 12 years ago
- Target version deleted (
3.3.2)
KD Updated by Koen Deforche over 12 years ago
- Status changed from Resolved to Closed
Actions