forked from teamnwah/openmw-tes3coop
[Client] Fix saving channel history
This commit is contained in:
parent
1c7330635b
commit
7eecbfd08e
1 changed files with 2 additions and 2 deletions
|
@ -365,8 +365,8 @@ namespace mwmp
|
||||||
|
|
||||||
void GUIChat::setChannel(ChannelIter it, bool saveHistory)
|
void GUIChat::setChannel(ChannelIter it, bool saveHistory)
|
||||||
{
|
{
|
||||||
if (saveHistory)
|
if (saveHistory && !mHistory->getCaption().empty())
|
||||||
channels[currentChannel].channelText = mHistory->getCaption();
|
getChannel(currentChannel)->channelText = mHistory->getCaption();
|
||||||
|
|
||||||
mHistory->setCaption(it->channelText);
|
mHistory->setCaption(it->channelText);
|
||||||
currentChannel = it->channel;
|
currentChannel = it->channel;
|
||||||
|
|
Loading…
Reference in a new issue