From 48942a35fdd7c1b1e7f5ab7833c74196a0f6c942 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 27 Jul 2017 15:56:33 +0300 Subject: Fix crash in help window links. --- src/gui/windows/helpwindow.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/gui/windows/helpwindow.cpp') diff --git a/src/gui/windows/helpwindow.cpp b/src/gui/windows/helpwindow.cpp index cd6e37941..1cfb30e2b 100644 --- a/src/gui/windows/helpwindow.cpp +++ b/src/gui/windows/helpwindow.cpp @@ -111,7 +111,8 @@ void HelpWindow::handleLink(const std::string &link, { if (!strStartWith(link, "http://") && !strStartWith(link, "https://")) { - const std::string &helpFile = link; + // need use separate variable + const std::string helpFile = link; loadHelp(helpFile); } else -- cgit v1.2.3-60-g2f50