Fix assert failure when recreating partition table
This commit is contained in:
parent
4b1975d3e2
commit
e3a52745fc
@ -114,7 +114,7 @@ PartitionPage::updateButtons()
|
|||||||
void
|
void
|
||||||
PartitionPage::onNewPartitionTableClicked()
|
PartitionPage::onNewPartitionTableClicked()
|
||||||
{
|
{
|
||||||
QModelIndex index = m_ui->deviceComboBox->view()->currentIndex();
|
QModelIndex index = m_core->deviceModel()->index( m_ui->deviceComboBox->currentIndex(), 0 );
|
||||||
Q_ASSERT( index.isValid() );
|
Q_ASSERT( index.isValid() );
|
||||||
Device* device = m_core->deviceModel()->deviceForIndex( index );
|
Device* device = m_core->deviceModel()->deviceForIndex( index );
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user