diff --git a/src/plugins/libparted/libpartedpartitiontable.cpp b/src/plugins/libparted/libpartedpartitiontable.cpp index 26d37a9..5939dd2 100644 --- a/src/plugins/libparted/libpartedpartitiontable.cpp +++ b/src/plugins/libparted/libpartedpartitiontable.cpp @@ -145,7 +145,7 @@ static PedFileSystemType* getPedFileSystemType(FileSystem::Type t) QString LibPartedPartitionTable::createPartition(Report& report, const Partition& partition) { - Q_ASSERT(partition.devicePath() == pedDevice()->path); + Q_ASSERT(partition.devicePath() == QString::fromUtf8(pedDevice()->path)); QString rval = QString(); @@ -201,7 +201,7 @@ QString LibPartedPartitionTable::createPartition(Report& report, const Partition bool LibPartedPartitionTable::deletePartition(Report& report, const Partition& partition) { - Q_ASSERT(partition.devicePath() == pedDevice()->path); + Q_ASSERT(partition.devicePath() == QString::fromUtf8(pedDevice()->path)); bool rval = false; @@ -224,7 +224,7 @@ bool LibPartedPartitionTable::deletePartition(Report& report, const Partition& p bool LibPartedPartitionTable::updateGeometry(Report& report, const Partition& partition, qint64 sector_start, qint64 sector_end) { - Q_ASSERT(partition.devicePath() == pedDevice()->path); + Q_ASSERT(partition.devicePath() == QString::fromUtf8(pedDevice()->path)); bool rval = false;