1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-23 14:13:57 +02:00

Return 0 for KdeConfigWidget if kcm_ktp_accounts was not found

This commit is contained in:
Dominik Schmidt
2013-06-24 02:12:51 +02:00
committed by Teo Mrnjavac
parent 8f1c4aeaf0
commit 1c61c5ae25

View File

@@ -27,7 +27,18 @@
QWidget*
KdeTelepathyConfigWidget::configWidget()
{
return new KCModuleProxy( "kcm_ktp_accounts" );
KCModuleProxy* proxy = new KCModuleProxy( "kcm_ktp_accounts" );
if ( !proxy->aboutData() )
{
qWarning() << "Could not load kcm_ktp_accounts... ";
delete proxy;
return 0;
}
return proxy;
}
Q_EXPORT_PLUGIN2( TelepathyConfigStorageConfigWidgetPlugin, KdeTelepathyConfigWidget )