From f9f4047155e4c62f653342e59c23dd140fe3ab7a Mon Sep 17 00:00:00 2001 From: unitraxx Date: Fri, 23 Aug 2013 23:47:48 +0000 Subject: [PATCH] Glitch fix git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/uni@13557 178a84e3-b1eb-0310-8ba1-8eac791a3b58 --- src/online/current_user.cpp | 1 + src/online/profile.cpp | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/online/current_user.cpp b/src/online/current_user.cpp index bf898f537..a5ccec607 100644 --- a/src/online/current_user.cpp +++ b/src/online/current_user.cpp @@ -535,6 +535,7 @@ namespace Online{ if (now_online) { relation_info->setOnline(true); + profile->setFriend(); to_notify.push_back(profile->getUserName()); } } diff --git a/src/online/profile.cpp b/src/online/profile.cpp index 34c218dd6..b0dfd92dc 100644 --- a/src/online/profile.cpp +++ b/src/online/profile.cpp @@ -48,7 +48,8 @@ namespace Online{ void Profile::RelationInfo::setOnline(bool online) { m_is_online = online; - m_is_pending = false; + if(m_is_online) + m_is_pending = false; } // ============================================================================