Fix assert failure when recreating partition table

main
Aurélien Gâteau 11 years ago
parent 4b1975d3e2
commit e3a52745fc

@ -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…
Cancel
Save