Change a way untranslated file system name is accessed.

This commit is contained in:
Andrius Štikonas 2017-09-15 12:47:28 +01:00
parent f29656ca45
commit 24237a6120
1 changed files with 2 additions and 2 deletions

View File

@ -1046,7 +1046,7 @@ void MainWindow::onImportPartitionTable()
return;
}
FileSystem* fs = FileSystemFactory::create(FileSystem::typeForUntranslatedName(fsName), firstSector, lastSector, device.logicalSize());
FileSystem* fs = FileSystemFactory::create(FileSystem::typeForName(fsName, { QStringLiteral("C") }), firstSector, lastSector, device.logicalSize());
if (fs == nullptr) {
KMessageBox::error(this, xi18nc("@info the partition is NOT a device path, just a number", "Could not create file system \"%1\" for partition %2 (line %3).", fsName, num, lineNo), xi18nc("@title:window", "Error While Importing Partition Table"));
@ -1087,7 +1087,7 @@ void MainWindow::onExportPartitionTable()
QTextStream stream(&tempFile);
stream << "##|v1|## partition table of " << pmWidget().selectedDevice()->deviceNode() << "\n";
stream << "# on " << QDateTime::currentDateTime().toString() << "\n";
stream << "# on " << QLocale::c().toString(QDateTime::currentDateTime()) << "\n";
stream << *pmWidget().selectedDevice()->partitionTable();
tempFile.close();