Small adjustments to the notification and user info dialog

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/uni@13556 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
unitraxx 2013-08-23 19:53:03 +00:00
parent 639d79fa10
commit 2ee5a1b188
2 changed files with 6 additions and 1 deletions

View File

@ -590,7 +590,7 @@ namespace Online{
}
else
{
message = _("You have a new friend request!.");
message = _("You have a new friend request!");
}
GUIEngine::DialogQueue::get()->pushDialog( new NotificationDialog(NotificationDialog::T_Friends, message), false);
OnlineProfileFriends::getInstance()->refreshFriendsList();

View File

@ -136,12 +136,14 @@ GUIEngine::EventPropagation UserInfoDialog::processEvent(const std::string& even
{
ProfileManager::get()->setVisiting(m_profile->getID());
m_enter_profile = true;
m_options_widget->setDeactivated();
return GUIEngine::EVENT_BLOCK;
}
else if(selection == m_friend_widget->m_properties[PROP_ID])
{
CurrentUser::get()->requestFriendRequest(m_profile->getID());
m_processing = true;
m_options_widget->setDeactivated();
return GUIEngine::EVENT_BLOCK;
}
else if(selection == m_remove_widget->m_properties[PROP_ID])
@ -151,18 +153,21 @@ GUIEngine::EventPropagation UserInfoDialog::processEvent(const std::string& even
else
CurrentUser::get()->requestRemoveFriend(m_profile->getID());
m_processing = true;
m_options_widget->setDeactivated();
return GUIEngine::EVENT_BLOCK;
}
else if(selection == m_accept_widget->m_properties[PROP_ID])
{
CurrentUser::get()->requestAcceptFriend(m_profile->getID());
m_processing = true;
m_options_widget->setDeactivated();
return GUIEngine::EVENT_BLOCK;
}
else if(selection == m_decline_widget->m_properties[PROP_ID])
{
CurrentUser::get()->requestDeclineFriend(m_profile->getID());
m_processing = true;
m_options_widget->setDeactivated();
return GUIEngine::EVENT_BLOCK;
}
}