mirror of
https://github.com/tnodir/fort
synced 2024-11-15 06:35:23 +00:00
UI: Minor fix.
This commit is contained in:
parent
5964641492
commit
e4ac53f359
@ -122,8 +122,8 @@ bool DriverManager::writeData(quint32 code, QByteArray &buf, int size)
|
||||
|
||||
void DriverManager::reinstallDriver()
|
||||
{
|
||||
QString binPath = FileUtil::appBinLocation();
|
||||
binPath.replace('/', '\\');
|
||||
const QString binPath = FileUtil::toNativeSeparators(
|
||||
FileUtil::appBinLocation());
|
||||
|
||||
const QString cmdPath = qEnvironmentVariable("COMSPEC");
|
||||
const QString scriptPath = binPath + "\\driver\\scripts\\reinstall-lnk.bat";
|
||||
|
@ -89,6 +89,11 @@ QString FileUtil::pathSlash(const QString &path)
|
||||
return path.endsWith(slash) ? path : path + slash;
|
||||
}
|
||||
|
||||
QString FileUtil::toNativeSeparators(const QString &path)
|
||||
{
|
||||
return QDir::toNativeSeparators(path);
|
||||
}
|
||||
|
||||
bool FileUtil::makePath(const QString &path)
|
||||
{
|
||||
return QDir().mkpath(path);
|
||||
|
@ -26,6 +26,7 @@ public:
|
||||
|
||||
static QString absolutePath(const QString &path);
|
||||
static QString pathSlash(const QString &path);
|
||||
static QString toNativeSeparators(const QString &path);
|
||||
|
||||
static bool makePath(const QString &path);
|
||||
static bool fileExists(const QString &filePath);
|
||||
|
Loading…
Reference in New Issue
Block a user