diff options
author | glx <glx@openttd.org> | 2019-01-28 23:51:34 +0100 |
---|---|---|
committer | Charles Pigott <charlespigott@googlemail.com> | 2019-01-28 23:43:18 +0000 |
commit | b22fbfbe3ddb1b965efdc948fe47cf9002cd3c71 (patch) | |
tree | 7d86a58709d1860f570c8fcdeeeff4a72a132424 /src/textfile_gui.cpp | |
parent | 310fa1af8863d84f9ebbe6b5ea36c21f3c4a43cf (diff) | |
download | openttd-b22fbfbe3ddb1b965efdc948fe47cf9002cd3c71.tar.xz |
Add: allow opening of one TextfileWindow per type
Diffstat (limited to 'src/textfile_gui.cpp')
-rw-r--r-- | src/textfile_gui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/textfile_gui.cpp b/src/textfile_gui.cpp index b0f9b1125..ff5226c2b 100644 --- a/src/textfile_gui.cpp +++ b/src/textfile_gui.cpp @@ -65,7 +65,7 @@ TextfileWindow::TextfileWindow(TextfileType file_type) : Window(&_textfile_desc) this->CreateNestedTree(); this->vscroll = this->GetScrollbar(WID_TF_VSCROLLBAR); this->hscroll = this->GetScrollbar(WID_TF_HSCROLLBAR); - this->FinishInitNested(); + this->FinishInitNested(file_type); this->GetWidget<NWidgetCore>(WID_TF_CAPTION)->SetDataTip(STR_TEXTFILE_README_CAPTION + file_type, STR_TOOLTIP_WINDOW_TITLE_DRAG_THIS); this->hscroll->SetStepSize(10); // Speed up horizontal scrollbar |