I've made some patches to the 0.5.1 version of gdivelog to fix some issues.
* Make the close button in the about box close the about box...
* When using feet, show the correct depth in the profile view when moving the cursor.
* Fix crash in site properties dialog when clicking "Apply".
* Make "Renumber dives" actually renumber each dive, thereby proving a way to fix things when/if the dive number go out of whack.
* Change the database Dive_Insert and Dive_Update triggers to properly (I hope...) set the dive numbers when changing a dive or inserting a new dive.
NOTE: AND THIS PART IS REALLY IMPORTANT; Changing the triggers upgrades your log database's schemaversion. Once upgraded, there's no going back. The DB will still work with a unpatched version of 0.5.1, but the database is modified, so even when going back, the triggers used will be the new ones. You can of course always dump the datase, create a new logfile and replay the dumped database minus the triggers.
The patch can be found at http://eskil.org/gdivelog/, to apply, download an unpack the gdivelog-0.5.1 source tarball, and ;
$ tar xjvf gdivelog-0.5.1.tar.bz2
$ patch -p0 < gdivelog-0.5.1-1.patch
build and install as usual.
If there's any other easy-to-reproduce bugs you know of, feel free to post here, embrace patience and I might give it a health stab.
see detailed description.