summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
dbdd42b)
Minor logical flaw that breaks the model.
When the --import parameter is found we need to mark that the FOLLOWING
dives are imported, not the ones loaded so far.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
+/*
+ * track whether we switched to importing dives
+ */
+static gboolean imported = FALSE;
+
/*
* This doesn't really report anything at all. We just sort the
* dives, the GUI does the reporting
/*
* This doesn't really report anything at all. We just sort the
* dives, the GUI does the reporting
if (strcmp(arg,"--import") == 0) {
/* mark the dives so far as the base,
* everything after is imported */
if (strcmp(arg,"--import") == 0) {
/* mark the dives so far as the base,
* everything after is imported */
+ report_dives(FALSE);
+ imported = TRUE;
return;
}
/* fallthrough */
return;
}
/* fallthrough */
+ report_dives(imported);