diff --git a/src/modules/hostinfo/HostInfoJob.cpp b/src/modules/hostinfo/HostInfoJob.cpp index 3dcbe3216..5223cb3bf 100644 --- a/src/modules/hostinfo/HostInfoJob.cpp +++ b/src/modules/hostinfo/HostInfoJob.cpp @@ -67,10 +67,12 @@ hostOSName() { #ifdef WITH_KOSRelease KOSRelease r; - return r.name(); -#else - return hostOS(); + if ( !r.name().isEmpty() ) + { + return r.name(); + } #endif + return hostOS(); } static QString