diff --git a/src/ui/dialog/whiteboard-sharewithchat.cpp b/src/ui/dialog/whiteboard-sharewithchat.cpp
index 8d33328bab90c510852869b809b063f02ae03144..b2b913de06e3981bc0dff34a23c6c032597e8130 100644 (file)
void
WhiteboardShareWithChatroomDialogImpl::setSessionManager()
{
- this->_desktop = SP_ACTIVE_DESKTOP;
- this->_sm = SP_ACTIVE_DESKTOP->whiteboard_session_manager();
+ this->_desktop = this->getDesktop();
+ this->_sm = this->_desktop->whiteboard_session_manager();
}