Project

General

Profile

Actions

Bug #897

closed

Removing the first tab

Added by Rob Van Dyck about 13 years ago. Updated about 13 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Start date:
07/13/2011
Due date:
% Done:

0%

Estimated time:

Description

Hi,

Removing the first tab gives me an error. If the commented line is uncommented, we are removing the second tab. That does work.

code snippet:

WText *test = new WText("testing tab removal");

WTabWidget *tabwidget_ = new WTabWidget();

//tabwidget_->addTab(new WText("if a previous tab is added it works"), "first tab");

tabwidget_->addTab(test, "test_pre_removal");

tabwidget_->removeTab(test);

tabwidget_->addTab(test, "test_post_removal");

root()->addWidget(tabwidget_);

I'm using the git version of today.

Kind regards,

Rob.

Actions #1

Updated by Koen Deforche about 13 years ago

  • Status changed from New to InProgress
  • Assignee set to Koen Deforche
  • Target version set to 3.1.11
Actions #2

Updated by Koen Deforche about 13 years ago

  • Status changed from InProgress to Resolved

Hey Rob,

It was caused by an issue in WMenuItem::takeContents() which in some cases still deleted the contents.

It's been fixed in git.

Keep them coming :-)

Regards,

koen

Actions #3

Updated by Koen Deforche about 13 years ago

  • Status changed from Resolved to Closed

Resolved in Wt 3.1.11

Actions

Also available in: Atom PDF