Project

General

Profile

Actions

Bug #2815

closed

WInPlaceEdit bug: Duplicated save/cancel buttons

Added by Anonymous over 10 years ago. Updated over 10 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

Actions #1

Updated by Koen Deforche over 10 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

Actions #2

Updated by Koen Deforche over 10 years ago

  • Target version deleted (3.3.2)
Actions #3

Updated by Koen Deforche over 10 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF