Mercurial > trustbridge
comparison ui/mainwindow.cpp @ 1308:fce8c122cbc4
(issue165) Invert manual states. Manual changes are inverted as the action should be the opposite of
the state.
author | Andre Heinecke <andre.heinecke@intevation.de> |
---|---|
date | Mon, 13 Oct 2014 13:25:36 +0200 |
parents | 87b3886aca69 |
children | 135891f1c8f4 |
comparison
equal
deleted
inserted
replaced
1307:2bacaec6e101 | 1308:fce8c122cbc4 |
---|---|
1469 QStringList unselected; | 1469 QStringList unselected; |
1470 | 1470 |
1471 choices << mUpdatesNew->selectedCertificates(); | 1471 choices << mUpdatesNew->selectedCertificates(); |
1472 choices << mUpdatesRemove->selectedCertificates(); | 1472 choices << mUpdatesRemove->selectedCertificates(); |
1473 | 1473 |
1474 choices << mUpdatesManual->selectedCertificates(); | 1474 choices << mUpdatesManual->unselectedCertificates(); |
1475 | 1475 |
1476 /* Also include the old certificates */ | 1476 /* Also include the old certificates */ |
1477 choices << mInstallList->selectedCertificates(); | 1477 choices << mInstallList->selectedCertificates(); |
1478 choices << mRemoveList->selectedCertificates(); | 1478 choices << mRemoveList->selectedCertificates(); |
1479 | 1479 |
1480 QStringList unselectedManuals = mUpdatesManual->unselectedCertificates(); | 1480 QStringList selectedManuals = mUpdatesManual->selectedCertificates(); |
1481 for(int i = 0; i < unselectedManuals.size(); i++) { | 1481 for(int i = 0; i < selectedManuals.size(); i++) { |
1482 if (unselectedManuals.at(i).startsWith("I:")) { | 1482 if (selectedManuals.at(i).startsWith("I:")) { |
1483 QString certLine = unselectedManuals.at(i); | 1483 QString certLine = selectedManuals.at(i); |
1484 certLine[0] = 'R'; | 1484 certLine[0] = 'R'; |
1485 choices << certLine; | 1485 choices << certLine; |
1486 } | 1486 } |
1487 } | 1487 } |
1488 | 1488 |