profile editor: remove the profile options when removing a profile
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Tue, 17 Dec 2019 19:29:01 +0000 (21:29 +0200)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Tue, 17 Dec 2019 19:29:01 +0000 (21:29 +0200)
app/src/main/java/net/ktnx/mobileledger/model/MobileLedgerProfile.java

index ba4a99b..a125827 100644 (file)
@@ -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 {