mirror of
https://github.com/parchlinux/calamares.git
synced 2025-02-24 10:55:46 -05:00
Fix assert failure when recreating partition table
This commit is contained in:
parent
4b1975d3e2
commit
e3a52745fc
1 changed files with 1 additions and 1 deletions
|
@ -114,7 +114,7 @@ PartitionPage::updateButtons()
|
|||
void
|
||||
PartitionPage::onNewPartitionTableClicked()
|
||||
{
|
||||
QModelIndex index = m_ui->deviceComboBox->view()->currentIndex();
|
||||
QModelIndex index = m_core->deviceModel()->index( m_ui->deviceComboBox->currentIndex(), 0 );
|
||||
Q_ASSERT( index.isValid() );
|
||||
Device* device = m_core->deviceModel()->deviceForIndex( index );
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue