diff -r c21c88dca14c -r d5e98b81e135 QTfrontend/ui/page/pagegamestats.cpp --- a/QTfrontend/ui/page/pagegamestats.cpp Sat Jun 08 23:54:44 2013 +0300 +++ b/QTfrontend/ui/page/pagegamestats.cpp Sun Jun 09 01:18:58 2013 +0300 @@ -40,6 +40,7 @@ QLayout * PageGameStats::bodyLayoutDefinition() { + defaultGraphTitle = true; QGridLayout * pageLayout = new QGridLayout(); pageLayout->setSpacing(20); pageLayout->setColumnStretch(0, 1); @@ -159,12 +160,16 @@ { graphic->show(); labelGraphTitle-> show(); + if(defaultGraphTitle) { + labelGraphTitle->setText("

" + PageGameStats::tr("Health graph") + "

"); + } else { + defaultGraphTitle = true; + } // if not health data sent if(healthPoints.size() == 0) { labelGraphTitle->hide(); graphic->hide(); } else { - labelGraphTitle->setText("

" + PageGameStats::tr("Health graph") + "

"); QGraphicsScene * scene = new QGraphicsScene(); QMap >::const_iterator i = healthPoints.constBegin(); @@ -232,6 +237,7 @@ case 'g' : { // TODO: change default picture or add change pic capability + defaultGraphTitle = false; labelGraphTitle->setText("

" + info + "

"); break; }