mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-28 01:45:36 -04:00
Try to invalidate whole PartitionModel on replace.
This commit is contained in:
parent
2a61114d9e
commit
9847b8efa9
3 changed files with 12 additions and 0 deletions
|
@ -239,3 +239,10 @@ PartitionModel::partitionForIndex( const QModelIndex& index ) const
|
||||||
return nullptr;
|
return nullptr;
|
||||||
return reinterpret_cast< Partition* >( index.internalPointer() );
|
return reinterpret_cast< Partition* >( index.internalPointer() );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void
|
||||||
|
PartitionModel::update()
|
||||||
|
{
|
||||||
|
emit dataChanged( index( 0, 0 ), index( rowCount() - 1, columnCount() - 1 ) );
|
||||||
|
}
|
||||||
|
|
|
@ -110,6 +110,8 @@ public:
|
||||||
return m_device;
|
return m_device;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void update();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Device* m_device;
|
Device* m_device;
|
||||||
OsproberEntryList m_osproberEntries;
|
OsproberEntryList m_osproberEntries;
|
||||||
|
|
|
@ -444,6 +444,9 @@ ChoicePage::applyActionChoice( ChoicePage::Choice choice )
|
||||||
PartitionActions::doReplacePartition( m_core,
|
PartitionActions::doReplacePartition( m_core,
|
||||||
selectedDevice(),
|
selectedDevice(),
|
||||||
partition );
|
partition );
|
||||||
|
PartitionModel* m = qobject_cast< PartitionModel* >( m_afterPartitionBarsView->model() );
|
||||||
|
if ( m )
|
||||||
|
m->update();
|
||||||
};
|
};
|
||||||
|
|
||||||
if ( m_core->isDirty() )
|
if ( m_core->isDirty() )
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue