From 302e6c48325c2069a632e770a79cdef5ec2bb945 Mon Sep 17 00:00:00 2001 From: Damyan Ivanov Date: Tue, 17 Dec 2019 21:29:01 +0200 Subject: [PATCH] profile editor: remove the profile options when removing a profile --- .../java/net/ktnx/mobileledger/model/MobileLedgerProfile.java | 1 + 1 file changed, 1 insertion(+) 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 { -- 2.39.5