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) {
|
||||
return;
|
||||
}
|
||||
Client *c = dynamic_cast<Client*>(m_client.data());
|
||||
if (c)
|
||||
if (m_client.isNull())
|
||||
return;
|
||||
Workspace *ws = Workspace::self();
|
||||
VirtualDesktopManager *vds = VirtualDesktopManager::self();
|
||||
|
@ -763,7 +762,7 @@ void UserActionsMenu::slotSendToDesktop(QAction *action)
|
|||
vds->setCount(desk);
|
||||
}
|
||||
|
||||
ws->sendClientToDesktop(c, desk, false);
|
||||
ws->sendClientToDesktop(m_client.data(), desk, false);
|
||||
}
|
||||
|
||||
void UserActionsMenu::slotSendToScreen(QAction *action)
|
||||
|
|
Loading…
Reference in a new issue