Drop dynamic_cast from UserActionsMenu::slotSendToDesktop

This commit is contained in:
Martin Gräßlin 2015-03-12 13:50:50 +01:00
parent d4f7445749
commit 7a74413712

View file

@ -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)