mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Use truth values with gboolean
Just a little cosmetic oversight Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
c3debc10fd
commit
ea2900a34a
1 changed files with 2 additions and 2 deletions
4
info.c
4
info.c
|
@ -531,13 +531,13 @@ gboolean edit_trip(struct dive *trip)
|
|||
new_text = get_combo_box_entry_text(info.location, &trip->location, trip->location);
|
||||
if (new_text) {
|
||||
add_location(new_text);
|
||||
changed = 1;
|
||||
changed = TRUE;
|
||||
}
|
||||
if (info.notes) {
|
||||
old_text = trip->notes;
|
||||
trip->notes = get_text(info.notes);
|
||||
if (text_changed(old_text, trip->notes))
|
||||
changed = 1;
|
||||
changed = TRUE;
|
||||
if (old_text)
|
||||
g_free(old_text);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue