Index: sources/view/hd/data/VTreatmentRanges.cpp =================================================================== diff -u -r7d2122a9a4330ebc2ff4c22be36f32e9a82417ec -rda2dbdbd92d099e44d11bbfb2b794d5ee19a0f0a --- sources/view/hd/data/VTreatmentRanges.cpp (.../VTreatmentRanges.cpp) (revision 7d2122a9a4330ebc2ff4c22be36f32e9a82417ec) +++ sources/view/hd/data/VTreatmentRanges.cpp (.../VTreatmentRanges.cpp) (revision da2dbdbd92d099e44d11bbfb2b794d5ee19a0f0a) @@ -55,15 +55,16 @@ void View::VTreatmentRanges::doSaveAcidConcentrate (const QString &vOption) { // check if unique - if ( _acidConcentrateOptions.contains(vOption) ) { return; } + if ( _acidConcentrateOptions.contains(vOption) ) { acidConcentrateAccepted(false); return; } - if ( ! _acidConcentrate.isEmpty() ) { _acidConcentrateOptions.removeLast(); } + if ( ! _acidConcentrate.isEmpty() ) { _acidConcentrateOptions.removeOne(_acidConcentrate); } _acidConcentrateOptions.append(vOption); acidConcentrate(vOption); // update emit acidConcentrateOptionsChanged(_acidConcentrateOptions); + acidConcentrateAccepted(true); } /** @@ -75,7 +76,7 @@ { if ( ! vSet ) { return; } - if ( ! _acidConcentrate.isEmpty() ) { _acidConcentrateOptions.removeLast(); } + if ( ! _acidConcentrate.isEmpty() ) { _acidConcentrateOptions.removeOne(_acidConcentrate); } acidConcentrate(""); // update