Actions
Bug #11424
closedRedundant WDialog::setClosable(false) causes "widget not in container" error in logs
Start date:
03/10/2023
Due date:
% Done:
100%
Estimated time:
Description
A dialog is not closeable by default. If we call setClosable(false)
on a dialog where closable()
already returned false
we get a "widget no in container" error because we try to remove closeIcon_
from the titleBar_
, but closeIcon_
is null.
WDialog::setClosable(bool closable)
should simply return if closable == this->closable()
.
Files
Updated by Roel Standaert over 1 year ago
- File dialog_closable.cpp dialog_closable.cpp added
Attached is a simple example that demonstrates the error.
Updated by Roel Standaert over 1 year ago
- Status changed from InProgress to Review
- Assignee deleted (
Roel Standaert)
Updated by Roel Standaert over 1 year ago
- Status changed from Review to Resolved
Updated by Roel Standaert over 1 year ago
- Status changed from Resolved to Closed
Actions