mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-05 09:15:34 +08:00
Fixed / tweaks as result of testing after merge with RW's stuff
* fixed wrong channel for received prviate messages * allow to minimize window * fixed sort coumn indicator for simulated aircraft
This commit is contained in:
@@ -259,7 +259,7 @@ namespace BlackGui
|
||||
void CTextMessageComponent::addPrivateChannelTextMessage(const CTextMessage &textMessage)
|
||||
{
|
||||
if (!textMessage.isPrivateMessage()) { return; }
|
||||
CCallsign cs = textMessage.getRecipientCallsign();
|
||||
CCallsign cs = textMessage.wasSent() ? textMessage.getRecipientCallsign() : textMessage.getSenderCallsign();
|
||||
if (cs.isEmpty()) { return; }
|
||||
QWidget *tab = this->findTextMessageTabByCallsign(cs);
|
||||
if (tab == nullptr) { tab = this->addNewTextMessageTab(cs); }
|
||||
@@ -346,6 +346,7 @@ namespace BlackGui
|
||||
if (!this->isVisible()) { return; }
|
||||
|
||||
QString cl(this->ui->le_textMessages->text().trimmed().simplified());
|
||||
this->ui->le_textMessages->clear();
|
||||
this->handleEnteredTextMessage(cl);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user