[partition] Initialize the filesystem type, not the partition type

- Passing FileSystem::Type to the QString constructor for
  partition type is not what I intended.
main
Adriaan de Groot 5 years ago
parent 73b5a0898d
commit ffce79e30e

@ -41,14 +41,14 @@ PartitionLayout::PartitionEntry::PartitionEntry()
{ {
} }
PartitionLayout::PartitionEntry::PartitionEntry( FileSystem::Type type, PartitionLayout::PartitionEntry::PartitionEntry( FileSystem::Type fs,
const QString& mountPoint, const QString& mountPoint,
const QString& size, const QString& size,
const QString& minSize, const QString& minSize,
const QString& maxSize ) const QString& maxSize )
: partType( type ) : partAttributes( 0 )
, partAttributes( 0 )
, partMountPoint( mountPoint ) , partMountPoint( mountPoint )
, partFileSystem( fs )
, partSize( size ) , partSize( size )
, partMinSize( minSize ) , partMinSize( minSize )
, partMaxSize( maxSize ) , partMaxSize( maxSize )

@ -49,7 +49,7 @@ public:
* Sets a specific FS type (not parsed from string like the other * Sets a specific FS type (not parsed from string like the other
* constructor). * constructor).
*/ */
PartitionEntry( FileSystem::Type type, PartitionEntry( FileSystem::Type fs,
const QString& mountPoint, const QString& mountPoint,
const QString& size, const QString& size,
const QString& minSize = QString(), const QString& minSize = QString(),

Loading…
Cancel
Save