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