Fix crash when closing split view with ownCloud plugin loaded
Review Request #127930 - Created May 15, 2016 and submitted
|Martin Tobias Holmedahl Sandsmark|
|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.
adding mpyne, which is the maintainer of KCoreAddons.