From: Damyan Ivanov Date: Tue, 17 Dec 2019 19:29:01 +0000 (+0200) Subject: profile editor: remove the profile options when removing a profile X-Git-Tag: v0.12.0~151 X-Git-Url: https://git.ktnx.net/?a=commitdiff_plain;h=302e6c48325c2069a632e770a79cdef5ec2bb945;p=mobile-ledger.git profile editor: remove the profile options when removing a profile --- diff --git a/app/src/main/java/net/ktnx/mobileledger/model/MobileLedgerProfile.java b/app/src/main/java/net/ktnx/mobileledger/model/MobileLedgerProfile.java index ba4a99b8..a1258271 100644 --- a/app/src/main/java/net/ktnx/mobileledger/model/MobileLedgerProfile.java +++ b/app/src/main/java/net/ktnx/mobileledger/model/MobileLedgerProfile.java @@ -314,6 +314,7 @@ public final class MobileLedgerProfile { db.execSQL("delete from account_values where profile=?", uuid_param); db.execSQL("delete from transactions where profile=?", uuid_param); db.execSQL("delete from transaction_accounts where profile=?", uuid_param); + db.execSQL("delete from options where profile=?", uuid_param); db.setTransactionSuccessful(); } finally {