1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-19 20:49:11 +00:00

Add: allow opening of one TextfileWindow per type

This commit is contained in:
glx
2019-01-28 23:51:34 +01:00
committed by Charles Pigott
parent 310fa1af88
commit b22fbfbe3d
5 changed files with 5 additions and 5 deletions

View File

@@ -76,7 +76,7 @@ struct ContentTextfileWindow : public TextfileWindow {
void ShowContentTextfileWindow(TextfileType file_type, const ContentInfo *ci)
{
DeleteWindowByClass(WC_TEXTFILE);
DeleteWindowById(WC_TEXTFILE, file_type);
new ContentTextfileWindow(file_type, ci);
}