refs #787, MS review items + discussion on slack

https://dev.vatsim-germany.org/issues/787#note-4
This commit is contained in:
Klaus Basan
2016-11-29 18:36:27 +01:00
parent df2073e5e6
commit fc3ac8b323
7 changed files with 9 additions and 14 deletions

View File

@@ -18,6 +18,7 @@
#include "blackgui/textmessagetextedit.h"
#include "blackgui/views/textmessageview.h"
#include "blackgui/views/viewbase.h"
#include "blackmisc/verify.h"
#include "blackmisc/audio/notificationsounds.h"
#include "blackmisc/aviation/atcstation.h"
#include "blackmisc/aviation/callsign.h"
@@ -287,7 +288,7 @@ namespace BlackGui
if (!tab) { tab = this->addNewTextMessageTab(cs); }
Q_ASSERT_X(tab, Q_FUNC_INFO, "Missing tab");
CTextMessageTextEdit *textEdit = tab->findChild<CTextMessageTextEdit *>();
Q_ASSERT_X(textEdit, Q_FUNC_INFO, "Missing text edit");
BLACK_VERIFY_X(textEdit, Q_FUNC_INFO, "Missing text edit");
if (!textEdit) { return; } // do not crash, though this situation could not happen
textEdit->insertTextMessage(textMessage);