Show error when setting file system label fails.

This commit is contained in:
Andrius Štikonas 2018-04-13 20:21:48 +03:00
parent 07458efb91
commit ed59aac2c8
1 changed files with 2 additions and 0 deletions

View File

@ -69,6 +69,8 @@ bool SetFileSystemLabelJob::run(Report& parent)
if (rval)
partition().fileSystem().setLabel(label());
}
else
rval = false;
// A hack to reread partition table (commit() should be called even on non DiskDevices)
Device dev(std::make_shared<DevicePrivate>(), QString(), QString(), 0, 0, QString(), Device::Type::Unknown_Device);