Comment 18 for bug 1368492

Revision history for this message
Zsombor Egri (zsombi) wrote :

Instead of using try-catch perhaps an interrogation whether the image provider is already installed should be made. QQmlEngine provides API for it, don't know why is not used...

This provider has been in and out of UI toolkit, and yes, I agree, someone should decide where is its place.

Meanwhile I suggest all to check whether an image provider is registered before registering, and then no try-catch combination would be needed. And, Jussi, it was you who actually put that try-catch section in the toolkit ;)