diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-08-11 21:25:16 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-08-11 23:43:48 +0300 |
commit | 44e80c70513022b6c378f64d6bf5d25dda7b0e7f (patch) | |
tree | acbdb6be0ba4377d908c017f593832589acb444f /src/gui/widgets | |
parent | 69c4bf1494b19ca3b3333effff83086b0f0b87fd (diff) | |
download | plus-44e80c70513022b6c378f64d6bf5d25dda7b0e7f.tar.gz plus-44e80c70513022b6c378f64d6bf5d25dda7b0e7f.tar.bz2 plus-44e80c70513022b6c378f64d6bf5d25dda7b0e7f.tar.xz plus-44e80c70513022b6c378f64d6bf5d25dda7b0e7f.zip |
Fix saving opened tabs state.
Diffstat (limited to 'src/gui/widgets')
-rw-r--r-- | src/gui/widgets/avatarlistbox.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gui/widgets/avatarlistbox.cpp b/src/gui/widgets/avatarlistbox.cpp index 748e038e2..5ac6721a5 100644 --- a/src/gui/widgets/avatarlistbox.cpp +++ b/src/gui/widgets/avatarlistbox.cpp @@ -366,8 +366,10 @@ void AvatarListBox::mousePressed(gcn::MouseEvent &event) { if (ava->getType() == AVATAR_PLAYER && chatWindow) { - chatWindow->addWhisperTab(model->getAvatarAt(selected) - ->getName(), true); + ChatTab *tab = chatWindow->addWhisperTab( + model->getAvatarAt(selected)->getName(), true); + if (chatWindow && tab) + chatWindow->saveState(); } } } |