From kde-commits Tue Jan 12 00:00:07 2016 From: Johannes Obermayr Date: Tue, 12 Jan 2016 00:00:07 +0000 To: kde-commits Subject: [k3b/kf5] /: Use deprecated method to load KPluginInfo (.desktop file doesn't work). Message-Id: X-MARC-Message: https://marc.info/?l=kde-commits&m=145255685115774 Git commit df93845ee2424c59381c49a6b61a36800f7395f8 by Johannes Obermayr. Committed on 11/01/2016 at 23:58. Pushed by jobermayr into branch 'kf5'. Use deprecated method to load KPluginInfo (.desktop file doesn't work). M +1 -1 libk3b/plugin/k3bpluginmanager.cpp M +1 -1 src/k3bsystemproblemdialog.cpp http://commits.kde.org/k3b/df93845ee2424c59381c49a6b61a36800f7395f8 diff --git a/libk3b/plugin/k3bpluginmanager.cpp b/libk3b/plugin/k3bpluginma= nager.cpp index a9ffcdc..880be68 100644 --- a/libk3b/plugin/k3bpluginmanager.cpp +++ b/libk3b/plugin/k3bpluginmanager.cpp @@ -109,7 +109,7 @@ void K3b::PluginManager::Private::loadPlugin( const KSe= rvice::Ptr &service ) qDebug() << "plugin system does not fit"; } else { - plugin->m_pluginInfo =3D KPluginInfo( service->entryPath() ); + plugin->m_pluginInfo =3D KPluginInfo( service ); plugins.append( plugin ); } } diff --git a/src/k3bsystemproblemdialog.cpp b/src/k3bsystemproblemdialog.cpp index 4e3022a..72f0fde 100644 --- a/src/k3bsystemproblemdialog.cpp +++ b/src/k3bsystemproblemdialog.cpp @@ -529,7 +529,7 @@ void K3b::SystemProblemDialog::checkSystem( QWidget* pa= rent, NotificationLevel l bool haveMp3Decoder =3D false; for( QList::const_iterator it =3D plugins.constBegin(); it !=3D plugins.constEnd(); ++it ) { - if( (*it)->pluginInfo().pluginName() =3D=3D "k3bmaddecoder" ) { + if( (*it)->pluginInfo().isValid() && (*it)->pluginInfo().pluginNam= e() =3D=3D "k3bmaddecoder" ) { haveMp3Decoder =3D true; break; }