Fix crash when closing split view with ownCloud plugin loaded

Review Request #127930 - Created May 15, 2016 and submitted

Information
Martin Tobias Holmedahl Sandsmark
dolphin
357479
Reviewers
dolphin
emmanuelp, mpyne, ogoffart

KPluginLoader::instantiatePlugins() wraps QPluginLoader::instance(),
which doesn't return a new object for each call, so if we set the
KFileItemModelRolesUpdater instance as parent to the plugin the shared
instance will be deleted leading to crashes when other instances of
KFileItemModelRolesUpdater tries to use their plugin objects.

To fix this, set the QApplication as a parent.

BUG: 357479

Yes.

Martin Tobias Holmedahl Sandsmark
Martin Tobias Holmedahl Sandsmark
Emmanuel Pescosta
Martin Tobias Holmedahl Sandsmark
Olivier Goffart
Martin Tobias Holmedahl Sandsmark
Review request changed

Status: Closed (submitted)

Change Summary:

Submitted with commit bed16191b5e9253d8658c0dac0d336b3dab5e0e3 by Martin T. H. Sandsmark to branch Applications/16.04.
Loading...