partitionmanager: stop using obsolete code paths

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2015-10-29 13:43:51 +02:00
parent 774fad98ba
commit 69d1a96360

View file

@ -618,7 +618,7 @@ void MainWindow::onSelectedDeviceMenuTriggered(bool)
if (action == NULL || action->parent() != devicesMenu)
return;
foreach (QAction* entry, qFindChildren<QAction*>(devicesMenu))
foreach (QAction* entry, devicesMenu->findChildren<QAction*>())
entry->setChecked(entry == action);
listDevices().setSelectedDevice(action->data().toString());
@ -628,7 +628,7 @@ void MainWindow::on_m_ListDevices_selectionChanged(const QString& device_node)
{
KMenu* devicesMenu = static_cast<KMenu*>(guiFactory()->container("selectedDevice", this));
foreach (QAction* entry, qFindChildren<QAction*>(devicesMenu))
foreach (QAction* entry, devicesMenu->findChildren<QAction*>())
entry->setChecked(entry->data().toString() == device_node);
}