Skip to content

Commit

Permalink
fix: [dfm-mount] can not get part uuid
Browse files Browse the repository at this point in the history
Logic error. the function use error.

Log: fix issue
Bug: https://pms.uniontech.com/bug-view-263863.html
  • Loading branch information
GongHeng2017 committed Jul 29, 2024
1 parent 6482ed5 commit 8b2ad12
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/dfm-mount/lib/dblockdevice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1354,11 +1354,11 @@ QVariant DBlockDevicePrivate::getPartitionProperty(Property name) const
case Property::kPartitionFlags:
return quint64(udisks_partition_get_flags(partition));
case Property::kPartitionName: {
char *tmp = udisks_partition_dup_uuid(partition);
char *tmp = udisks_partition_dup_name(partition);
return Utils::gcharToQString(tmp);
}
case Property::kPartitionUUID: {
char *tmp = udisks_partition_dup_type_(partition);
char *tmp = udisks_partition_dup_uuid(partition);
return Utils::gcharToQString(tmp);
}
case Property::kPartitionTable: {
Expand Down

0 comments on commit 8b2ad12

Please sign in to comment.