Actions
Bug #5663
closedAfter setObjectName was applied to modal WDialog with setTransient(true), hiding the dialog did not stop graying out the background.
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.
- Click test Dialog.
- Click outside the Dialog, the dialog will be closed. The background will be intractable.
- Click test Dialog with ObjectName.
- 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
Updated by Michiel Derhaeg over 7 years ago
- Status changed from New to Implemented @Emweb
Updated by Roel Standaert over 7 years ago
- Status changed from Implemented @Emweb to Resolved
Updated by Roel Standaert over 7 years ago
- Status changed from Resolved to Closed
Actions