Do not run the same check twice.
Spotted by Kevin_Kofler.
This commit is contained in:
parent
e103c65b73
commit
0827eda687
|
@ -52,8 +52,7 @@ fat16::fat16(qint64 firstsector, qint64 lastsector, qint64 sectorsused, const QS
|
||||||
|
|
||||||
void fat16::init()
|
void fat16::init()
|
||||||
{
|
{
|
||||||
m_Create = findExternal(QStringLiteral("mkfs.fat")) ? cmdSupportFileSystem : cmdSupportNone;
|
m_Create = m_GetUsed = m_Check = findExternal(QStringLiteral("mkfs.fat"), {}, 1) ? cmdSupportFileSystem : cmdSupportNone;
|
||||||
m_GetUsed = m_Check = findExternal(QStringLiteral("mkfs.fat"), {}, 1) ? cmdSupportFileSystem : cmdSupportNone;
|
|
||||||
m_GetLabel = cmdSupportCore;
|
m_GetLabel = cmdSupportCore;
|
||||||
m_SetLabel = findExternal(QStringLiteral("fatlabel")) ? cmdSupportFileSystem : cmdSupportNone;
|
m_SetLabel = findExternal(QStringLiteral("fatlabel")) ? cmdSupportFileSystem : cmdSupportNone;
|
||||||
m_Move = cmdSupportCore;
|
m_Move = cmdSupportCore;
|
||||||
|
|
Loading…
Reference in New Issue