subsurface/mobile-widgets/qml
Dirk Hohndel f19e10209c mobile: fix broken cylinder name tracking in dive edit
Prior to this change, we had two different cylinder lists as models for
drop down boxes - one that prepends the "no default cylinder" entry
(which we need for setting up no default cylinder to be used in the
app), and another one that only includes actual cylinders.

The problem occured if a dive is created before the first time we edit
an existing dive: in this case we are applying indices across the two
models, but the indices are of course off by one; this results in
actually picking the wrong cylinder. So each time we try to edit a dive,
we end up with the previous cylinder in the list.

This commit simplifies the code by having only one place where we create
list of cylinder names (which is then used as the model for the combo
box). It also uses more logical names for the two 'flavors' of this list
to make it clear which one is supposed to be used (the regular list when
editing or adding dives, the one with the "no default cylinder" entry
prependet for the Settings page).

Reported-by: Brian Fransen
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2021-09-02 12:41:00 -07:00
..
icons mobile UI: six new icons 2020-03-10 09:25:57 -07:00
About.qml cleanup: update copyrights 2021-07-03 14:28:37 -07:00
CloudCredentials.qml mobile/UI: cloud credentials follow our theming 2020-12-20 17:08:21 -08:00
CopySettings.qml Mobile: UI for selecting what to copy-paste 2018-12-21 09:13:37 +02:00
DiveDetails.qml mobile: add ability to edit tags 2021-08-18 19:09:59 -07:00
DiveDetailsEdit.qml mobile: add ability to edit tags 2021-08-18 19:09:59 -07:00
DiveDetailsView.qml mobile/UI: add signal to redraw profile 2021-01-10 15:57:39 -08:00
DiveList.qml mobile/UI: show result of manual sync 2021-01-23 13:19:11 -08:00
DivePlannerEdit.qml mobile-widgets/qml: use Kirigami Units instead of hardcoded values 2020-01-24 20:20:41 -08:00
DivePlannerManager.qml mobile-widgets/qml: use Kirigami Units instead of hardcoded values 2020-01-24 20:20:41 -08:00
DivePlannerSetup.qml Mobile UI: fix typo in disabled planner setup 2020-03-04 08:03:44 -08:00
DivePlannerView.qml mobile-widgets/qml: use Kirigami Units instead of hardcoded values 2020-01-24 20:20:41 -08:00
DiveSummary.qml mobile/UI: small adjustments, using the slim combo box 2021-01-12 08:31:35 -08:00
DownloadedDiveDelegate.qml mobile/UI: consolidate to a single check box 2021-01-01 11:35:39 -08:00
DownloadFromDiveComputer.qml mobile/UI: consolidate to a single check box 2021-01-01 11:35:39 -08:00
Export.qml mobile/export: fix invalid reference 2020-03-12 07:07:48 -07:00
GpsList.qml QML UI, trivial: set proper background color GPS list 2018-10-07 17:43:34 +03:00
HintsTextEdit.qml Mobile QML UI: bump Kirigami imports to 2.4 2018-10-01 05:29:46 -07:00
Log.qml mobile-widgets/qml: columnWidth undefined 2020-01-18 12:44:05 -08:00
main.qml mobile: fix broken cylinder name tracking in dive edit 2021-09-02 12:41:00 -07:00
MapPage.qml Mobile: don't make sub-pages fill the parent 2019-10-13 11:32:27 -07:00
mobile-resources.qrc mobile/UI: add another variation of the combo box 2021-01-12 08:31:35 -08:00
qmldir mobile-widgets/qml: add qmldir to include map-widget 2019-11-26 09:44:13 -08:00
qtquickcontrols2.conf QML UI: Fully port dive edit to Kirigami2 2017-04-01 09:35:51 +02:00
RecoverCache.qml mobile: add option to merge local cloud cache data 2020-06-07 19:47:52 -07:00
Settings.qml mobile/UI: simplify and cleanup Settings 2021-01-19 12:42:47 -08:00
SsrfSwitch.qml Mobile UI: make SsrfSwitch resizable 2018-10-21 14:43:41 -04:00
SsrfTextField.qml mobile/edit: fix broken screen repositioning 2021-01-19 12:42:47 -08:00
StartPage.qml mobile/UI: cloud credentials follow our theming 2020-12-20 17:08:21 -08:00
StatisticsPage.qml mobile: don't quit on back button in Statistics mode 2021-08-18 19:09:59 -07:00
TemplateButton.qml mobile/UI: offer more font sizes 2021-01-19 12:35:29 -08:00
TemplateCheckBox.qml mobile/UI: consolidate to a single check box 2021-01-01 11:35:39 -08:00
TemplateComboBox.qml mobile/UI: improve layout of styled ComboBox and TextField 2021-01-19 12:35:29 -08:00
TemplateEditComboBox.qml mobile/UI: add template for editable combo box 2021-01-01 11:35:39 -08:00
TemplateLabel.qml mobile: reduce vertical white space around labels 2020-05-14 12:57:08 -07:00
TemplateLabelSmall.qml mobile: tweak line spacing 2021-08-18 19:09:59 -07:00
TemplateLine.qml mobile-widgets/qml: add TemplateLine 2020-01-19 11:50:19 -08:00
TemplatePage.qml mobile UI: set correct width for TeplatePage 2020-02-06 21:45:00 -08:00
TemplateRadioButton.qml mobile UI: style check boxes and radio boxes 2020-12-20 10:51:18 -08:00
TemplateSection.qml mobile-widgets: update design of TemplateSection 2020-01-25 17:25:54 -08:00
TemplateSlimComboBox.qml mobile/UI: improve layout of styled ComboBox and TextField 2021-01-19 12:35:29 -08:00
TemplateSpinBox.qml mobile/UI: improve theming of spin box 2020-12-23 09:44:39 -08:00
TemplateTextField.qml mobile-widgets/qml: add TemplateTextField 2020-01-19 11:50:10 -08:00
TemplateTitle.qml mobile-widgets/qml: correct spelling error 2020-01-27 14:25:03 -08:00
ThemeTest.qml mobile/cleanup: make theme test page work in dark mode 2021-01-19 12:42:48 -08:00
TripDetails.qml mobile/UI: initialize Kirigami theme to use our colors 2020-12-23 09:44:39 -08:00