Project

General

Profile

Actions

Bug #2815

closed
KD

WInPlaceEdit bug: Duplicated save/cancel buttons

Bug #2815: WInPlaceEdit bug: Duplicated save/cancel buttons

Added by Anonymous over 12 years ago. Updated over 12 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
-
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 Actions #1

  • 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 Actions #2

  • Target version deleted (3.3.2)

KD Updated by Koen Deforche over 12 years ago Actions #3

  • Status changed from Resolved to Closed
Actions

Also available in: PDF Atom