From 1df7b21ee3fa008f0b79e843a7bd14de26544e38 Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Sat, 27 Jan 2024 19:44:10 +0000 Subject: [PATCH] Fix #11889: ConstructWindow not called from SurveyResultTextfileWindow constructor (#11903) --- src/network/network_gui.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/network/network_gui.cpp b/src/network/network_gui.cpp index 8d4d579b3e..a228bedb82 100644 --- a/src/network/network_gui.cpp +++ b/src/network/network_gui.cpp @@ -2568,6 +2568,8 @@ struct SurveyResultTextfileWindow : public TextfileWindow { SurveyResultTextfileWindow(TextfileType file_type) : TextfileWindow(file_type) { + this->ConstructWindow(); + auto result = _survey.CreatePayload(NetworkSurveyHandler::Reason::PREVIEW, true); this->LoadText(result); this->InvalidateData();