Revert "Remove Luks from FileSystemFactory."

This reverts commit dd1f6aaae0.
This commit is contained in:
Andrius Štikonas 2016-05-17 15:30:57 +01:00
parent dd1f6aaae0
commit c01d63cb02
2 changed files with 3 additions and 2 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)
if (fs->type() == FileSystem::Unknown || fs->type() == FileSystem::Extended || fs->type() == FileSystem::Luks)
continue;
QTreeWidgetItem* item = new QTreeWidgetItem();

View File

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