diff --git a/src/MultiLedger.c b/src/MultiLedger.c index e02f45bf64..9358167c2a 100644 --- a/src/MultiLedger.c +++ b/src/MultiLedger.c @@ -32,12 +32,6 @@ #include "Transaction.h" #include "util.h" -/* the MAX_QUERY_SPLITS define determines how many transactions should be shown - * in the register. Its set to a default of 30. But this should be converted - * into a user-configurable value. So hack-alert on the configuration aspect. - */ -#define MAX_QUERY_SPLITS 30 - /** GLOBALS *********************************************************/ /* These are globals because they describe the state of the entire session. * The is, there must be only one instance of these per GUI session. diff --git a/src/MultiLedger.h b/src/MultiLedger.h index e124d7e2aa..06462d0216 100644 --- a/src/MultiLedger.h +++ b/src/MultiLedger.h @@ -32,6 +32,21 @@ #include "SplitLedger.h" #include "Transaction.h" +/* the MAX_QUERY_SPLITS define determines how many transactions should be shown + * in the register. Its set to a default of 30. But this should be converted + * into a user-configurable value. So hack-alert on the configuration aspect. + */ +#define MAX_QUERY_SPLITS 30 + +/* the MAX_QUERY_SPLITS_UNCLAMP define determines cap on how many transactions + * should be shown in the register when uiser is browsing with dates. Its set + * to a default of 1000, which should give user plenty of elbow room to browse, + * and is still small enough to keep em out of trouble. This should be converted + * into a user-configurable value. So hack-alert on the configuration aspect. + */ +#define MAX_QUERY_SPLITS_UNCLAMP 1000 + + /** STRUCTS *********************************************************/ /* The xaccLedgerDisplay struct describes a single register/ledger instance. */