From d29481c1969622bd95b6a3f9ab5a9c1d022bc2c9 Mon Sep 17 00:00:00 2001 From: Alejandro Martinez Date: Thu, 6 Aug 2015 14:50:06 -0300 Subject: [PATCH] Fixed never translate charts in HomeWindow Local variable defaultUsed was initialized to false and never updated --- src/HomeWindow.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/HomeWindow.cpp b/src/HomeWindow.cpp index bf4c29411..a11c96d9d 100644 --- a/src/HomeWindow.cpp +++ b/src/HomeWindow.cpp @@ -1304,7 +1304,6 @@ HomeWindow::restoreState(bool useDefault) for(int i = numCharts - 1; i >= 0; i--) { removeChart(i,false); } - bool defaultUsed = false; // setup the handler QXmlInputSource source; @@ -1323,7 +1322,7 @@ HomeWindow::restoreState(bool useDefault) // translate the metrics, but only if the built-in "default.XML"s are read (and only for LTM charts) // and only if the language is not English (i.e. translation is required). - if (defaultUsed and !english) { + if (useDefault && !english) { // translate the titles translateChartTitles(handler.charts);