[partition] Simplify selectedDevice()
This commit is contained in:
parent
bf466e0ea4
commit
6ded13a917
@ -360,10 +360,7 @@ ChoicePage::setupChoices()
|
||||
Device*
|
||||
ChoicePage::selectedDevice()
|
||||
{
|
||||
Device* currentDevice = nullptr;
|
||||
currentDevice
|
||||
= m_core->deviceModel()->deviceForIndex( m_core->deviceModel()->index( m_drivesCombo->currentIndex() ) );
|
||||
|
||||
Device* const currentDevice = m_core->deviceModel()->deviceForIndex( m_core->deviceModel()->index( m_drivesCombo->currentIndex() ) );
|
||||
return currentDevice;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user