From b22fbfbe3ddb1b965efdc948fe47cf9002cd3c71 Mon Sep 17 00:00:00 2001 From: glx Date: Mon, 28 Jan 2019 23:51:34 +0100 Subject: Add: allow opening of one TextfileWindow per type --- src/network/network_content_gui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/network') diff --git a/src/network/network_content_gui.cpp b/src/network/network_content_gui.cpp index 1df2fc82c..877dea978 100644 --- a/src/network/network_content_gui.cpp +++ b/src/network/network_content_gui.cpp @@ -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); } -- cgit v1.2.3-70-g09d2