]> git.tdb.fi Git - ext/subsurface.git/commit
Update the known locations / buddies / divemasters as user enters them
authorDirk Hohndel <dirk@hohndel.org>
Sat, 29 Oct 2011 05:51:15 +0000 (22:51 -0700)
committerDirk Hohndel <dirk@hohndel.org>
Sat, 29 Oct 2011 05:51:15 +0000 (22:51 -0700)
commit84f570beef789695f080f9109febcff384d98c50
tree76178a64c014153cb1482ab0537d78ec88e61be5
parentbf7d70fe8b9b8c2a1f6d381ae000cb0d91e36961
Update the known locations / buddies / divemasters as user enters them

The code that allowed a user to start typing the name of a location, buddy
or divemaster and that would then offer completions has one flaw - it
doesn't add any new names that you enter to its store of names until you
save and restart the app. This patch fixes that.

When reading the code I also noted that the location_changed,
divemaster_changed, buddy_changed variables have become meaningless. They
are set to 1 and tested, but never changed. I wasn't sure if I should
remove the variables (as the code seems to work without them having any
impact), or if we should go back to actually tracking these changes to
prevent unnecessarily marking the divelist as changed.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
info.c