mirror of
https://github.com/parchlinux/calamares.git
synced 2025-07-03 12:25:38 -04:00
Do not crash.
This commit is contained in:
parent
b81e46b6ef
commit
c7f46136fc
1 changed files with 3 additions and 1 deletions
|
@ -49,6 +49,7 @@ PartitionSplitterWidget::init( const QList<PartitionSplitterItem>& items )
|
|||
m_itemToResizeNext = nullptr;
|
||||
m_itemToResizePath.clear();
|
||||
|
||||
m_items.clear();
|
||||
m_items = items;
|
||||
repaint();
|
||||
foreach ( const PartitionSplitterItem& item, items )
|
||||
|
@ -164,7 +165,8 @@ PartitionSplitterWidget::paintEvent( QPaintEvent* event )
|
|||
QPainter painter( this );
|
||||
painter.fillRect( rect(), palette().window() );
|
||||
painter.setRenderHint( QPainter::Antialiasing );
|
||||
drawPartitions( &painter, rect(), m_items );
|
||||
if ( m_itemToResize && m_itemToResizeNext )
|
||||
drawPartitions( &painter, rect(), m_items );
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue