mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-23 18:32:49 +00:00
solid: correct CPU prefix check
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
75cb91bd47
commit
e9b8f27026
1 changed files with 2 additions and 1 deletions
|
@ -23,6 +23,7 @@
|
|||
#include "cpuinfo.h"
|
||||
|
||||
#include <QtCore/QFile>
|
||||
#include <QtCore/QDir>
|
||||
|
||||
using namespace Solid::Backends::UDev;
|
||||
|
||||
|
@ -118,7 +119,7 @@ Solid::Processor::InstructionSets Processor::instructionSets() const
|
|||
QString Processor::prefix() const
|
||||
{
|
||||
const QLatin1String sysPrefix("/sysdev");
|
||||
if (QFile::exists(m_device->deviceName() + sysPrefix)) {
|
||||
if (QDir(m_device->deviceName() + sysPrefix).exists()) {
|
||||
return sysPrefix;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue