Skip to content

workspaceThumbnail: Use transient object for connecting some signals

We want to connect and disconnect a bunch of signals when showing/hiding the worskpace thumbnails. To make this easy, use a transient object that we tie to these signal handlers.


Not sure this is the best approach to these kind of issues. The problem is that this constructor connects a bunch of "long lived" signal handlers, and the destroy*/create* functions should connect/disconnect handlers that only should stay connected when the thumbnails are visible.

We can't use disconnectObject(this) since it'll disconnect the signal handlers that got connected during construct.

Edited by Jonas Ådahl

Merge request reports