Project

General

Profile

Bug #3817

WTabWidget::addTab emits currentChanged() with an invalid index

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

Status:
Closed
Priority:
Normal
Target version:
Start date:
02/23/2015
Due date:
% Done:

0%

Estimated time:

Description

The index is invalid because WTabWidget::addTab calls WMenu::addItem before adding the tab widget to WTabWidget::contentsStack_ in WTabWidget:57-59

The signal is emitted by WMenu when and only when internal paths are enabled via following call path:

Wt::WMenu::select() at WMenu.C:296 0x7ffff70928e1

Wt::WMenuItem::setFromInternalPath() at WMenuItem.C:447 0x7ffff7096381

Wt::WMenu::itemPathChanged() at WMenu.C:242 0x7ffff7090870

(missing call entry to WMenu::addItem)

Wt::WTabWidget::addTab() at WTabWidget.C:57 0x7ffff71091cd

#1

Updated by Koen Deforche over 5 years ago

  • Status changed from New to InProgress
#2

Updated by Koen Deforche over 5 years ago

  • Assignee set to Benoit Daccache
#3

Updated by Benoit Daccache over 5 years ago

  • Status changed from InProgress to Resolved
#4

Updated by Koen Deforche over 5 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF