From c8c06400a6627053897d69f127e8699f89e503f7 Mon Sep 17 00:00:00 2001
From: Andrey Kleshchev <andreykproductengine@lindenlab.com>
Date: Tue, 11 May 2021 13:23:04 +0300
Subject: [PATCH] SL-15245 Multiple guide books open, but cannot close them all

"how_to" floater is supposed to be single instance
---
 indra/newview/llfloaterhowto.h | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/indra/newview/llfloaterhowto.h b/indra/newview/llfloaterhowto.h
index 15fc43335af..fa1d9cace00 100644
--- a/indra/newview/llfloaterhowto.h
+++ b/indra/newview/llfloaterhowto.h
@@ -42,12 +42,14 @@ class LLFloaterHowTo :
 
     LLFloaterHowTo(const Params& key);
 
-    /*virtual*/ void onOpen(const LLSD& key);
+    void onOpen(const LLSD& key) override;
 
     static LLFloaterHowTo* getInstance();
 
+    bool matchesKey(const LLSD& key) override { return true; /*single instance*/ };
+
 private:
-    /*virtual*/ BOOL postBuild();
+    BOOL postBuild() override;
 };
 
 #endif  // LL_LLFLOATERHOWTO_H
-- 
GitLab