[partition] Canonicalize the FS choice for erase
This commit is contained in:
parent
d8a862ec82
commit
cd804470b5
@ -9,6 +9,8 @@
|
|||||||
|
|
||||||
#include "Config.h"
|
#include "Config.h"
|
||||||
|
|
||||||
|
#include "PartUtils.h"
|
||||||
|
|
||||||
#include "GlobalStorage.h"
|
#include "GlobalStorage.h"
|
||||||
#include "JobQueue.h"
|
#include "JobQueue.h"
|
||||||
#include "utils/Logger.h"
|
#include "utils/Logger.h"
|
||||||
@ -210,11 +212,11 @@ Config::setSwapChoice( Config::SwapChoice c )
|
|||||||
void
|
void
|
||||||
Config::setEraseFsTypeChoice( const QString& choice )
|
Config::setEraseFsTypeChoice( const QString& choice )
|
||||||
{
|
{
|
||||||
if ( choice != m_eraseFsTypeChoice )
|
QString canonicalChoice = PartUtils::canonicalFilesystemName( choice, nullptr );
|
||||||
|
if ( canonicalChoice != m_eraseFsTypeChoice )
|
||||||
{
|
{
|
||||||
// FIXME: shouldn't this be a canonical fs name?
|
m_eraseFsTypeChoice = canonicalChoice;
|
||||||
m_eraseFsTypeChoice = choice;
|
Q_EMIT eraseModeFilesystemChanged( canonicalChoice );
|
||||||
Q_EMIT eraseModeFilesystemChanged( choice );
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user