Project

General

Profile

Actions

Bug #11424

closed
RS RS

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

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

Added by Roel Standaert over 3 years ago. Updated over 3 years 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

RS Updated by Roel Standaert over 3 years ago Actions #1

Attached is a simple example that demonstrates the error.

RS Updated by Roel Standaert over 3 years ago Actions #2

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

RS Updated by Roel Standaert over 3 years ago Actions #3

  • Status changed from Review to Resolved

RS Updated by Roel Standaert over 3 years ago Actions #4

  • Assignee set to Roel Standaert

RS Updated by Roel Standaert over 3 years ago Actions #5

  • % Done changed from 0 to 100

RS Updated by Roel Standaert over 3 years ago Actions #6

  • Status changed from Resolved to Closed
Actions

Also available in: PDF Atom