Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

prepare_sample reallocs the dive - don't keep pointers around #48

Merged
merged 1 commit into from
Oct 2, 2011
Merged

prepare_sample reallocs the dive - don't keep pointers around #48

merged 1 commit into from
Oct 2, 2011

Conversation

dirkhh
Copy link
Collaborator

@dirkhh dirkhh commented Oct 2, 2011

Thanks Valgrind

This diff looks pointless at first until you see that I reference dive
again earlier in the loop and then after the end of the loop.

Signed-off-by: Dirk Hohndel dirk@hohndel.org

Thanks Valgrind

This diff looks pointless at first until you see that I reference dive
again earlier in the loop and then after the end of the loop.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
@torvalds torvalds merged commit fe0eff8 into subsurface:master Oct 2, 2011
@torvalds
Copy link
Collaborator

torvalds commented Oct 2, 2011

On Sun, Oct 2, 2011 at 10:44 AM, Dirk Hohndel
reply@reply.github.com
wrote:

Thanks Valgrind

This diff looks pointless at first until you see that I reference dive
again earlier in the loop and then after the end of the loop.

Pulled and pushed out.

Btw, I'm looking at the equipment editing right now, and I have to say
that if I add cylinder start/end pressures and Helium percentages, the
window grows way too much horizontally.

And I tried making it vertical (ie add those things below the type and
working pressure etc), and that is just ugly and would also make it
use too much vertical space if we have more than two cylinders and
start adding other equipment. I threw away all my trials, they really
didn't seem to work.

So now I'm wondering if I should make the cylinder widgets
non-editable - which makes them much smaller widgets - and then have
an edit/del buttons next to it. And bring up a "cylinder edit dialog"
for when you want to edit the cylinder. That would also be where the
Ok/Cancel buttons would go.

What do you think? It adds another layer of indirection, and requires
you to click that "edit" button to edit the cylinder info, which
sounds very annoying if you edit multiple dives and want to fix up
cylinder information. But it sounds ok on an "individual dive" level
when you're just adding info for a single dive.

               Linus

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants