mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-24 14:42:53 +02:00
Return 0 for KdeConfigWidget if kcm_ktp_accounts was not found
This commit is contained in:
committed by
Teo Mrnjavac
parent
8f1c4aeaf0
commit
1c61c5ae25
@@ -27,7 +27,18 @@
|
|||||||
QWidget*
|
QWidget*
|
||||||
KdeTelepathyConfigWidget::configWidget()
|
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 )
|
Q_EXPORT_PLUGIN2( TelepathyConfigStorageConfigWidgetPlugin, KdeTelepathyConfigWidget )
|
||||||
|
Reference in New Issue
Block a user