From a122e6a2d205fdba53a6b37ac559e3b0e00e77f0 Mon Sep 17 00:00:00 2001 From: Oliver Hamlet Date: Fri, 7 Nov 2014 18:11:25 +0000 Subject: [PATCH] Don't reload the current game if selected. --- resources/report/js/script.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/resources/report/js/script.js b/resources/report/js/script.js index 2690b0ef..37cb7de3 100644 --- a/resources/report/js/script.js +++ b/resources/report/js/script.js @@ -558,6 +558,10 @@ function openLogLocation(evt) { loot.query('openLogLocation').catch(processCefError); } function changeGame(evt) { + /* Check that the selected game isn't the current one. */ + if (evt.target.className.indexOf('core-selected') != -1) { + return; + } /* First store current game info in loot.games object. This object may not exist, so initialise it if not. */ var index = undefined;