mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-02-26 21:03:31 +01:00
Return 0 for KdeConfigWidget if kcm_ktp_accounts was not found
This commit is contained in:
parent
8f1c4aeaf0
commit
1c61c5ae25
@ -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 )
|
||||
|
Loading…
x
Reference in New Issue
Block a user