Commit 730b2a99 authored by Andrius Štikonas's avatar Andrius Štikonas

Fix race condition in reading fstype on partition table import.

Thanks to Christoph Vogtländer for reporting and fixing.

BUG: 400330
parent 2a90cc46
......@@ -1010,7 +1010,7 @@ void MainWindow::onImportPartitionTable()
qint32 num = rePartition.captured(1).toInt();
qint64 firstSector = rePartition.captured(2).toLongLong();
qint64 lastSector = rePartition.captured(3).toLongLong();
QLatin1String fsName = QLatin1String(rePartition.captured(4).toLatin1());
QString fsName = rePartition.captured(4);
QString roleNames = rePartition.captured(5);
QString volumeLabel = rePartition.captured(6).replace(QStringLiteral("\""), QString());
QStringList flags = rePartition.captured(7).replace(QStringLiteral("\""), QString()).split(QStringLiteral(","));
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment