# HG changeset patch # User Wuzzy # Date 1547599198 -3600 # Node ID 13b22e2f2010f2a7d8d7723a37190d805980a683 # Parent b86e6e4f3c5893e12042b8cba665ba86d1f5dc7a Frontend: Don't reset campaign mission selection to top of list after each play diff -r b86e6e4f3c58 -r 13b22e2f2010 QTfrontend/hwform.cpp --- a/QTfrontend/hwform.cpp Wed Jan 16 00:37:26 2019 +0100 +++ b/QTfrontend/hwform.cpp Wed Jan 16 01:39:58 2019 +0100 @@ -2145,11 +2145,11 @@ { Q_UNUSED(index); - QString missionTitle = ui.pageCampaign->CBMission->currentText(); + QString missionTitle = ui.pageCampaign->CBMission->currentData().toString(); UpdateCampaignPage(0); for(int i=0;iCBMission->count();i++) { - if (ui.pageCampaign->CBMission->itemData(i)==missionTitle) + if (ui.pageCampaign->CBMission->itemData(i).toString() == missionTitle) { ui.pageCampaign->CBMission->setCurrentIndex(i); break;