# HG changeset patch # User unc0rr # Date 1351362221 -14400 # Node ID d1c0e434116588a4de657bacd8ee302a71e0daaf # Parent 43e68ac28d791b010d191b1ab5227df64d87d461 - Better fix than the one from rc7f5c3bd7f8c. Now just scrolling back till net/nettype/main page. Not tested aswell. - Fix couple warnings diff -r 43e68ac28d79 -r d1c0e4341165 QTfrontend/hwform.cpp --- a/QTfrontend/hwform.cpp Sat Oct 27 20:05:52 2012 +0200 +++ b/QTfrontend/hwform.cpp Sat Oct 27 22:23:41 2012 +0400 @@ -1291,11 +1291,12 @@ QString errorStr = QMessageBox::tr("Connection to server is lost") + (reason.isEmpty()?"":("\n\n" + HWNewNet::tr("Quit reason: ") + '"' + reason +'"')); ShowErrorMessage(errorStr); } - if (ui.Pages->currentIndex() != ID_PAGE_NET) + + while (ui.Pages->currentIndex() != ID_PAGE_NET + && ui.Pages->currentIndex() != ID_PAGE_NETTYPE + && ui.Pages->currentIndex() != ID_PAGE_MAIN) { - while (!PagesStack.isEmpty()) PagesStack.pop(); - PagesStack.push(ID_PAGE_MAIN); - GoToPage(ID_PAGE_NET); + GoBack(); } } diff -r 43e68ac28d79 -r d1c0e4341165 QTfrontend/model/playerslistmodel.cpp --- a/QTfrontend/model/playerslistmodel.cpp Sat Oct 27 20:05:52 2012 +0200 +++ b/QTfrontend/model/playerslistmodel.cpp Sat Oct 27 22:23:41 2012 +0400 @@ -230,13 +230,19 @@ QPainter painter(&result); if(index.data(RoomFilterRole).toBool()) + { if(index.data(InGame).toBool()) + { painter.drawPixmap(0, 0, 16, 16, QPixmap(":/res/chat/ingame.png")); + } else + { if(index.data(Ready).toBool()) painter.drawPixmap(0, 0, 16, 16, QPixmap(":/res/chat/lamp.png")); else painter.drawPixmap(0, 0, 16, 16, QPixmap(":/res/chat/lamp_off.png")); + } + } QString mainIconName(":/res/chat/"); diff -r 43e68ac28d79 -r d1c0e4341165 QTfrontend/ui/page/pagegamestats.cpp --- a/QTfrontend/ui/page/pagegamestats.cpp Sat Oct 27 20:05:52 2012 +0200 +++ b/QTfrontend/ui/page/pagegamestats.cpp Sat Oct 27 22:23:41 2012 +0400 @@ -140,7 +140,7 @@ while (i != healthPoints.constEnd()) { quint32 c = i.key(); - QColor clanColor = QColor(qRgb((c >> 16) & 255, (c >> 8) & 255, c & 255)); + //QColor clanColor = QColor(qRgb((c >> 16) & 255, (c >> 8) & 255, c & 255)); QVector hps = i.value(); QPainterPath path;