Project

General

Profile

Actions

Bug #897

closed
RV KD

Removing the first tab

Bug #897: Removing the first tab

Added by Rob Van Dyck about 15 years ago. Updated almost 15 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.

KD Updated by Koen Deforche about 15 years ago Actions #1

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

KD Updated by Koen Deforche about 15 years ago Actions #2

  • 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

KD Updated by Koen Deforche almost 15 years ago Actions #3

  • Status changed from Resolved to Closed

Resolved in Wt 3.1.11

Actions

Also available in: PDF Atom