mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-09-22 05:44:54 -04:00
fixed compilation with rs_efs
This commit is contained in:
parent
a991521cd0
commit
483a68000a
1 changed files with 7 additions and 7 deletions
|
@ -118,7 +118,7 @@ FriendServerControl::FriendServerControl(QWidget *parent)
|
||||||
rsEvents->registerEventsHandler( [this](std::shared_ptr<const RsEvent> event)
|
rsEvents->registerEventsHandler( [this](std::shared_ptr<const RsEvent> event)
|
||||||
{
|
{
|
||||||
RsQThreadUtils::postToObject([=](){ handleEvent_main_thread(event); }, this );
|
RsQThreadUtils::postToObject([=](){ handleEvent_main_thread(event); }, this );
|
||||||
}, mEventHandlerId_peer, RsEventType::PEER_STATE );
|
}, mEventHandlerId_peer, RsEventType::FRIEND_LIST );
|
||||||
}
|
}
|
||||||
|
|
||||||
void FriendServerControl::onAutoAddFriends(bool b)
|
void FriendServerControl::onAutoAddFriends(bool b)
|
||||||
|
@ -145,14 +145,14 @@ void FriendServerControl::handleEvent_main_thread(std::shared_ptr<const RsEvent>
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
const RsConnectionEvent *pe = dynamic_cast<const RsConnectionEvent*>(event.get());
|
const RsFriendListEvent *pe = dynamic_cast<const RsFriendListEvent*>(event.get());
|
||||||
|
|
||||||
if(pe)
|
if(pe)
|
||||||
switch(pe->mConnectionInfoCode)
|
switch(pe->mEventCode)
|
||||||
{
|
{
|
||||||
case RsConnectionEventCode::PEER_ADDED:
|
case RsFriendListEventCode::NODE_ADDED:
|
||||||
case RsConnectionEventCode::PEER_REMOVED:
|
case RsFriendListEventCode::NODE_REMOVED:
|
||||||
case RsConnectionEventCode::PEER_CONNECTED: updateContactsStatus();
|
case RsFriendListEventCode::NODE_CONNECTED: updateContactsStatus();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default: ;
|
default: ;
|
||||||
|
@ -169,7 +169,7 @@ FriendServerControl::~FriendServerControl()
|
||||||
rsEvents->unregisterEventsHandler(mEventHandlerId_peer);
|
rsEvents->unregisterEventsHandler(mEventHandlerId_peer);
|
||||||
}
|
}
|
||||||
|
|
||||||
void FriendServerControl::launchStatusContextMenu(QPoint p)
|
void FriendServerControl::launchStatusContextMenu(QPoint /* p */)
|
||||||
{
|
{
|
||||||
RsPeerId peer_id = getCurrentPeer();
|
RsPeerId peer_id = getCurrentPeer();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue