mirror of
https://bitbucket.org/smil3y/kde-extraapps.git
synced 2025-02-24 02:42:52 +00:00
partitionmanager: stop using obsolete code paths
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
774fad98ba
commit
69d1a96360
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue