[hostinfo] Use os-release only if non-empty
This commit is contained in:
parent
6528ba30c9
commit
dac47d2c3a
@ -67,10 +67,12 @@ hostOSName()
|
||||
{
|
||||
#ifdef WITH_KOSRelease
|
||||
KOSRelease r;
|
||||
if ( !r.name().isEmpty() )
|
||||
{
|
||||
return r.name();
|
||||
#else
|
||||
return hostOS();
|
||||
}
|
||||
#endif
|
||||
return hostOS();
|
||||
}
|
||||
|
||||
static QString
|
||||
|
Loading…
Reference in New Issue
Block a user