mFocusLostSignal is not needed, these disconnect themselves.
This commit is contained in:
@@ -444,9 +444,6 @@ LLFloaterIMPanel::~LLFloaterIMPanel()
|
|||||||
|
|
||||||
delete mVoiceChannel;
|
delete mVoiceChannel;
|
||||||
mVoiceChannel = NULL;
|
mVoiceChannel = NULL;
|
||||||
|
|
||||||
//delete focus lost callback
|
|
||||||
mFocusLostSignal.disconnect();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// virtual
|
// virtual
|
||||||
@@ -484,7 +481,7 @@ BOOL LLFloaterIMPanel::postBuild()
|
|||||||
mInputEditor = getChild<LLLineEditor>("chat_editor");
|
mInputEditor = getChild<LLLineEditor>("chat_editor");
|
||||||
mInputEditor->setAutoreplaceCallback(boost::bind(&LLAutoReplace::autoreplaceCallback, LLAutoReplace::getInstance(), _1, _2, _3, _4, _5));
|
mInputEditor->setAutoreplaceCallback(boost::bind(&LLAutoReplace::autoreplaceCallback, LLAutoReplace::getInstance(), _1, _2, _3, _4, _5));
|
||||||
mInputEditor->setFocusReceivedCallback( boost::bind(&LLFloaterIMPanel::onInputEditorFocusReceived, this) );
|
mInputEditor->setFocusReceivedCallback( boost::bind(&LLFloaterIMPanel::onInputEditorFocusReceived, this) );
|
||||||
mFocusLostSignal = mInputEditor->setFocusLostCallback(boost::bind(&LLFloaterIMPanel::setTyping, this, false));
|
mInputEditor->setFocusLostCallback(boost::bind(&LLFloaterIMPanel::setTyping, this, false));
|
||||||
mInputEditor->setKeystrokeCallback( boost::bind(&LLFloaterIMPanel::onInputEditorKeystroke, this, _1) );
|
mInputEditor->setKeystrokeCallback( boost::bind(&LLFloaterIMPanel::onInputEditorKeystroke, this, _1) );
|
||||||
mInputEditor->setCommitCallback( boost::bind(&LLFloaterIMPanel::onSendMsg,this) );
|
mInputEditor->setCommitCallback( boost::bind(&LLFloaterIMPanel::onSendMsg,this) );
|
||||||
mInputEditor->setCommitOnFocusLost( FALSE );
|
mInputEditor->setCommitOnFocusLost( FALSE );
|
||||||
|
|||||||
@@ -242,9 +242,6 @@ private:
|
|||||||
// Timer to detect when user has stopped typing.
|
// Timer to detect when user has stopped typing.
|
||||||
LLFrameTimer mLastKeystrokeTimer;
|
LLFrameTimer mLastKeystrokeTimer;
|
||||||
|
|
||||||
boost::signals2::connection mFocusLostSignal;
|
|
||||||
|
|
||||||
|
|
||||||
CachedUICtrl<LLUICtrl> mVolumeSlider;
|
CachedUICtrl<LLUICtrl> mVolumeSlider;
|
||||||
CachedUICtrl<LLUICtrl> mEndCallBtn;
|
CachedUICtrl<LLUICtrl> mEndCallBtn;
|
||||||
CachedUICtrl<LLUICtrl> mStartCallBtn;
|
CachedUICtrl<LLUICtrl> mStartCallBtn;
|
||||||
|
|||||||
Reference in New Issue
Block a user