Skip to content

Avoid bad initialization order for applications only using the qt iconengine plugin

Christoph Cullmann requested to merge work/avoid_race_for_plugin into master

if the plugin is loaded and the the application itself doesn't link against iconthemes, the startup functions will race against e.g. QIcon's global instance construction

we can avoid this by just initing the needed stuff during init of our global data

this now happens anyways always as

  1. the platform integration triggers this
  2. the plugin loading triggers this

for me, this works properly with both stuff that links against iconthemes (e.g. Kate) and pure Qt stuff, in both cases the init functions are called at the right time

Edited by Christoph Cullmann

Merge request reports