Drop dynamic_cast from UserActionsMenu::slotSendToDesktop
This commit is contained in:
parent
d4f7445749
commit
7a74413712
1 changed files with 2 additions and 3 deletions
|
@ -750,8 +750,7 @@ void UserActionsMenu::slotSendToDesktop(QAction *action)
|
||||||
if (!ok) {
|
if (!ok) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
Client *c = dynamic_cast<Client*>(m_client.data());
|
if (m_client.isNull())
|
||||||
if (c)
|
|
||||||
return;
|
return;
|
||||||
Workspace *ws = Workspace::self();
|
Workspace *ws = Workspace::self();
|
||||||
VirtualDesktopManager *vds = VirtualDesktopManager::self();
|
VirtualDesktopManager *vds = VirtualDesktopManager::self();
|
||||||
|
@ -763,7 +762,7 @@ void UserActionsMenu::slotSendToDesktop(QAction *action)
|
||||||
vds->setCount(desk);
|
vds->setCount(desk);
|
||||||
}
|
}
|
||||||
|
|
||||||
ws->sendClientToDesktop(c, desk, false);
|
ws->sendClientToDesktop(m_client.data(), desk, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
void UserActionsMenu::slotSendToScreen(QAction *action)
|
void UserActionsMenu::slotSendToScreen(QAction *action)
|
||||||
|
|
Loading…
Reference in a new issue