Separate the warnings for "cut split/transaction" and "delete split/transaction"

This commit is contained in:
Simon Arlott 2021-10-28 21:30:48 +01:00
parent d6ad50df54
commit f7f6f337df
No known key found for this signature in database
GPG Key ID: DF001BFD83E75990
2 changed files with 24 additions and 4 deletions

View File

@ -964,11 +964,11 @@ gsr_default_cut_txn_handler (GNCSplitReg *gsr, gpointer data)
{
gtk_message_dialog_format_secondary_text (GTK_MESSAGE_DIALOG(dialog),
"%s", recn_warn);
warning = GNC_PREF_WARN_REG_SPLIT_DEL_RECD;
warning = GNC_PREF_WARN_REG_SPLIT_CUT_RECD;
}
else
{
warning = GNC_PREF_WARN_REG_SPLIT_DEL;
warning = GNC_PREF_WARN_REG_SPLIT_CUT;
}
gtk_dialog_add_button (GTK_DIALOG(dialog),
@ -1003,11 +1003,11 @@ gsr_default_cut_txn_handler (GNCSplitReg *gsr, gpointer data)
{
gtk_message_dialog_format_secondary_text (GTK_MESSAGE_DIALOG(dialog),
"%s", recn_warn);
warning = GNC_PREF_WARN_REG_TRANS_DEL_RECD;
warning = GNC_PREF_WARN_REG_TRANS_CUT_RECD;
}
else
{
warning = GNC_PREF_WARN_REG_TRANS_DEL;
warning = GNC_PREF_WARN_REG_TRANS_CUT;
}
gtk_dialog_add_button (GTK_DIALOG(dialog),
_("_Cancel"), GTK_RESPONSE_CANCEL);

View File

@ -64,6 +64,16 @@
<summary>Mark transaction split as unreconciled</summary>
<description>This dialog is presented before allowing you to mark a transaction split as unreconciled. Doing so will throw off the reconciled value of the register and can make it hard to perform future reconciliations.</description>
</key>
<key name="reg-split-cut" type="i">
<default>0</default>
<summary>Cut a split from a transaction</summary>
<description>This dialog is presented before allowing you to cut a split from a transaction.</description>
</key>
<key name="reg-split-cut-recd" type="i">
<default>0</default>
<summary>Cut a reconciled split from a transaction</summary>
<description>This dialog is presented before allowing you to cut a reconciled split from a transaction. Doing so will throw off the reconciled value of the register and can make it hard to perform future reconciliations.</description>
</key>
<key name="reg-split-del" type="i">
<default>0</default>
<summary>Remove a split from a transaction</summary>
@ -84,6 +94,16 @@
<summary>Remove all the splits from a transaction</summary>
<description>This dialog is presented before allowing you to remove all splits (including some reconciled splits) from a transaction. Doing so will throw off the reconciled value of the register and can make it hard to perform future reconciliations.</description>
</key>
<key name="reg-trans-cut" type="i">
<default>0</default>
<summary>Cut a transaction</summary>
<description>This dialog is presented before allowing you to cut a transaction.</description>
</key>
<key name="reg-trans-cut-recd" type="i">
<default>0</default>
<summary>Cut a transaction with reconciled splits</summary>
<description>This dialog is presented before allowing you to cut a transaction that contains reconciled splits. Doing so will throw off the reconciled value of the register and can make it hard to perform future reconciliations.</description>
</key>
<key name="reg-trans-del" type="i">
<default>0</default>
<summary>Delete a transaction</summary>