From e3a52745fccaeb661e89e4d8182d4b608158bc35 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20G=C3=A2teau?= Date: Tue, 29 Jul 2014 15:54:48 +0200 Subject: [PATCH] Fix assert failure when recreating partition table --- src/modules/partition/PartitionPage.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/partition/PartitionPage.cpp b/src/modules/partition/PartitionPage.cpp index 060ee336d..05fa6243d 100644 --- a/src/modules/partition/PartitionPage.cpp +++ b/src/modules/partition/PartitionPage.cpp @@ -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 );