Fix race condition in reading fstype on partition table import.

Thanks to Christoph Vogtländer for reporting and fixing.

BUG: 400330
This commit is contained in:
Andrius Štikonas 2019-02-27 23:15:17 +00:00
parent 2a90cc4652
commit 730b2a9992
1 changed files with 1 additions and 1 deletions

View File

@ -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(","));