We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fa94955 commit d333934Copy full SHA for d333934
2 files changed
src/lobby.cpp
@@ -553,7 +553,10 @@ void Lobby::get_motd()
553
{
554
document = tr("Couldn't get the message of the day.");
555
}
556
- ui_motd_text->setHtml(document);
+ if (ui_motd_text)
557
+ {
558
+ ui_motd_text->setHtml(document);
559
+ }
560
});
561
562
src/lobby.h
@@ -82,7 +82,7 @@ class Lobby : public QMainWindow
82
QPushButton *ui_refresh_button;
83
84
// Serverinfo / MOTD Horizontal Row
85
- QTextBrowser *ui_motd_text;
+ QPointer<QTextBrowser> ui_motd_text;
86
87
QLabel *ui_server_player_count_lbl;
88
QTextBrowser *ui_server_description_text;
0 commit comments