Project

General

Profile

Actions

Bug #5663

closed

After setObjectName was applied to modal WDialog with setTransient(true), hiding the dialog did not stop graying out the background.

Added by Apivan Tuntakurn almost 7 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Target version:
-
Start date:
04/19/2017
Due date:
% Done:

0%

Estimated time:

Description

The code below can reproduce the problem.

  buttonA->clicked().connect(std::bind([parent](){

    auto dia = new WDialog("Personalia", parent);
    new Wt::WText("Enter your name: ", dia->contents());
    new Wt::WLineEdit(dia->contents());
    new Wt::WBreak(dia->contents());
    new Wt::WPushButton("Ok", dia->contents());

    dia->setObjectName("XXX"); //! < The bug is not reproducible without this line. 
    dia->setModal(true);
    dia->setTransient(true);
    dia->show();
  }));

Or, use the attached project to reproduce the problem.

Step to reproduce

Please ensure that the default resources folder is supplied to docroot.

  1. Click test Dialog.
  2. Click outside the Dialog, the dialog will be closed. The background will be intractable.
  3. Click test Dialog with ObjectName.
  4. Click outside the Dialog, the dialog will be closed, but the background will not be intractable and not stop graying out. The ``signal not exposed'' will show on log.

Wt version:

Wt Github bac28e1d4d828622b3255a28319ecf2d6fbe88af


Files

charts2.tar.gz (17.2 KB) charts2.tar.gz Apivan Tuntakurn, 04/19/2017 09:47 AM
Actions #1

Updated by Michiel Derhaeg almost 7 years ago

  • Assignee set to Michiel Derhaeg
Actions #2

Updated by Michiel Derhaeg almost 7 years ago

  • Status changed from New to Implemented @Emweb
Actions #3

Updated by Roel Standaert almost 7 years ago

  • Status changed from Implemented @Emweb to Resolved
Actions #4

Updated by Roel Standaert over 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF