QIF Import Always Creates Credit Card Account Under Assets—Regardless of !Type or T Field

Hi,

I want to import split credit card transactions into my existing credit card account (e.g., “Main Credit Card”) in KMyMoney, without having to manually pick the account every time.

For that, I made a QIF file like this:

!Account
NMain Credit Card
TLiability
^
!Type:Bank
... [split transactions here]

But when I import, KMyMoney creates a new account under Assets (Asset → Main Credit Card), not under Liabilities (Liability → Main Credit Card) as I expect.

It seems to ignore the T (“Liability”) in the !Account section.

I also tried dropping TLiability and changing the !Type section to !Type:Liability, !Type:CCard, and !Type:Oth L. All of these still create the account under Assets.

Is this a bug or just unsupported use case?
Any workaround for getting KMyMoney to recognize the account type and name to skip manual selection when doing a QIF import?

Thanks!