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