Project

General

Profile

Actions

Bug #11424

closed

Redundant WDialog::setClosable(false) causes "widget not in container" error in logs

Added by Roel Standaert about 1 year ago. Updated 11 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Roel Standaert
Target version:
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

dialog_closable.cpp (388 Bytes) dialog_closable.cpp Roel Standaert, 03/10/2023 12:33 PM
Actions #1

Updated by Roel Standaert about 1 year ago

Attached is a simple example that demonstrates the error.

Actions #2

Updated by Roel Standaert about 1 year ago

  • Status changed from InProgress to Review
  • Assignee deleted (Roel Standaert)
Actions #3

Updated by Roel Standaert about 1 year ago

  • Status changed from Review to Resolved
Actions #4

Updated by Roel Standaert about 1 year ago

  • Assignee set to Roel Standaert
Actions #5

Updated by Roel Standaert about 1 year ago

  • % Done changed from 0 to 100
Actions #6

Updated by Roel Standaert 11 months ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF