mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-26 08:58:22 -04:00
[partition] Preserve desired partition flags
- Use the desired (future) flags, if set, to initialize the flags checkboxes. If there are no future flags set, this returns active flags as before. - This fixes the situation where editing a partition, changing flags, then editing it *again* re-starts with the original flags instead of the modified flags.
This commit is contained in:
parent
6739b81c2a
commit
0df304b206
1 changed files with 1 additions and 1 deletions
|
@ -141,7 +141,7 @@ EditExistingPartitionDialog::setupFlagsList()
|
||||||
m_ui->m_listFlags->addItem( item );
|
m_ui->m_listFlags->addItem( item );
|
||||||
item->setFlags( Qt::ItemIsUserCheckable | Qt::ItemIsEnabled );
|
item->setFlags( Qt::ItemIsUserCheckable | Qt::ItemIsEnabled );
|
||||||
item->setData( Qt::UserRole, f );
|
item->setData( Qt::UserRole, f );
|
||||||
item->setCheckState( ( m_partition->activeFlags() & f ) ?
|
item->setCheckState( ( PartitionInfo::flags( m_partition ) & f ) ?
|
||||||
Qt::Checked :
|
Qt::Checked :
|
||||||
Qt::Unchecked );
|
Qt::Unchecked );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue