diff options
Diffstat (limited to 'kutils/kcmoduleinfo.cpp')
-rw-r--r-- | kutils/kcmoduleinfo.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/kutils/kcmoduleinfo.cpp b/kutils/kcmoduleinfo.cpp index ababaadba..2de4142d4 100644 --- a/kutils/kcmoduleinfo.cpp +++ b/kutils/kcmoduleinfo.cpp @@ -53,7 +53,9 @@ KCModuleInfo::KCModuleInfo() KCModuleInfo::KCModuleInfo(const QString& desktopFile) { - init( KService::serviceByStorageId(desktopFile) ); + KService::Ptr service = KService::serviceByStorageId(desktopFile); + if(!service) setName(desktopFile); + init(service); } KCModuleInfo::KCModuleInfo( KService::Ptr moduleInfo ) |