[OS X] Prevent a crash in the IdealDockWidget's context menu

Review Request #128016 - Created May 25, 2016 and discarded

Information
René J.V. Bertin
kdevplatform
Reviewers
kdevelop

OS X can be capricious when instances corresponding to a widget are deleted, if the class in question uses "native" ObjC SDKs behind the scenes. Pending events can in that case be (generated and) delivered to objects that were already deleted.
According to the documentation, one should prefer to use QObject::deleteLater() rather than the regular, direct delete whether it be explicit or implicit.

I've long used a local patch that uses this approach in order to prevent a recurring crash after using the context menu of the "ideal dock widget". Somehow I never put it up for review here, apparently.

Builds and permits reliable behaviour on both OS X and Linux.

Issues

  • 0
  • 5
  • 0
  • 5
Description From Last Updated
Aleix Pol Gonzalez
Sven Brauch
René J.V. Bertin
René J.V. Bertin
Milian Wolff
René J.V. Bertin
Friedrich W. H. Kossebau
René J.V. Bertin
Review request changed

Status: Discarded

Loading...