Remove Luks from FileSystemFactory.

This commit is contained in:
Andrius Štikonas 2016-05-17 15:05:05 +01:00
parent 8763fbf2ae
commit dd1f6aaae0
2 changed files with 2 additions and 3 deletions

View File

@ -72,7 +72,7 @@ void FileSystemSupportDialog::setupDialog()
dialogWidget().tree().clear();
foreach(const FileSystem * fs, FileSystemFactory::map()) {
if (fs->type() == FileSystem::Unknown || fs->type() == FileSystem::Extended || fs->type() == FileSystem::Luks)
if (fs->type() == FileSystem::Unknown || fs->type() == FileSystem::Extended)
continue;
QTreeWidgetItem* item = new QTreeWidgetItem();

View File

@ -70,8 +70,7 @@ void NewDialog::setupDialog()
QStringList fsNames;
foreach (const FileSystem * fs, FileSystemFactory::map())
if (fs->supportCreate() != FileSystem::cmdSupportNone &&
fs->type() != FileSystem::Extended &&
fs->type() != FileSystem::Luks)
fs->type() != FileSystem::Extended)
fsNames.append(fs->name());
qSort(fsNames.begin(), fsNames.end(), caseInsensitiveLessThan);