diff options
| -rw-r--r-- | indra/newview/llfloaterfacebook.cpp | 7 | ||||
| -rw-r--r-- | indra/newview/llfloaterfacebook.h | 2 | 
2 files changed, 7 insertions, 2 deletions
| diff --git a/indra/newview/llfloaterfacebook.cpp b/indra/newview/llfloaterfacebook.cpp index 516cf5c15c..d8cc070fd0 100644 --- a/indra/newview/llfloaterfacebook.cpp +++ b/indra/newview/llfloaterfacebook.cpp @@ -156,7 +156,8 @@ void LLFacebookStatusPanel::onSend()  {  	LLEventPumps::instance().obtain("FacebookConnectState").stopListening("LLFacebookStatusPanel"); // just in case it is already listening  	LLEventPumps::instance().obtain("FacebookConnectState").listen("LLFacebookStatusPanel", boost::bind(&LLFacebookStatusPanel::onFacebookConnectStateChange, this, _1)); -		 +	 +	pressedConnect = FALSE;  	// Connect to Facebook if necessary and then post  	if (LLFacebookConnect::instance().isConnected())  	{ @@ -186,7 +187,8 @@ bool LLFacebookStatusPanel::onFacebookConnectStateChange(const LLSD& data)  	switch (data.get("enum").asInteger())  	{  		case LLFacebookConnect::FB_CONNECTED: -			sendStatus(); +			if(!pressedConnect) +				sendStatus();  			break;  		case LLFacebookConnect::FB_POSTED: @@ -293,6 +295,7 @@ void LLFacebookStatusPanel::onConnect()  {
  	LLFacebookConnect::instance().checkConnectionToFacebook(true);
 +	pressedConnect = TRUE;
  	//Clear only the facebook browser cookies so that the facebook login screen appears
  	LLViewerMedia::getCookieStore()->removeCookiesByDomain(".facebook.com"); 
  }
 diff --git a/indra/newview/llfloaterfacebook.h b/indra/newview/llfloaterfacebook.h index 86e3a148b9..e1526db18d 100644 --- a/indra/newview/llfloaterfacebook.h +++ b/indra/newview/llfloaterfacebook.h @@ -62,6 +62,8 @@ private:  	void showDisconnectedLayout();
  	void showConnectedLayout();
 +	bool pressedConnect;
 +
  	LLTextBox * mAccountCaptionLabel;
  	LLTextBox * mAccountNameLabel;
  	LLUICtrl * mPanelButtons;
 | 
