summaryrefslogtreecommitdiffstats
path: root/gtk-gui.c
diff options
context:
space:
mode:
authorGravatar Linus Torvalds <torvalds@linux-foundation.org>2011-10-05 08:06:48 -0700
committerGravatar Linus Torvalds <torvalds@linux-foundation.org>2011-10-05 08:06:48 -0700
commitf4820455e2019c1a9deba7e90ed7f06111a4cb39 (patch)
tree0baad636f3e277404e4b041ba5ea84c69dd44742 /gtk-gui.c
parent0e29df87f43365309f89d6dbd5b4a3acd8ea5054 (diff)
downloadsubsurface-f4820455e2019c1a9deba7e90ed7f06111a4cb39.tar.gz
Move 'dive_list_update_dives()' call into 'report_dives()'
All the callers were always calling report_dives first, followed by dive_list_update_dives(). And there really was no reason to have the callers call two separate functions for the "I've added new dives" case. So just call dive_list_update_dives() directly from report_dives(), and remove it from the callers. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'gtk-gui.c')
-rw-r--r--gtk-gui.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/gtk-gui.c b/gtk-gui.c
index d6ab412c7..cecfb7259 100644
--- a/gtk-gui.c
+++ b/gtk-gui.c
@@ -130,7 +130,6 @@ static void file_open(GtkWidget *w, gpointer data)
}
g_slist_free(filenames);
report_dives();
- dive_list_update_dives();
}
gtk_widget_destroy(dialog);
}
@@ -881,7 +880,6 @@ void import_dialog(GtkWidget *w, gpointer data)
gtk_widget_destroy(dialog);
report_dives();
- dive_list_update_dives();
}
void update_progressbar(progressbar_t *progress, double value)