Skip to content

Commit

Permalink
fix(moneymanagerex#6064): reinit
Browse files Browse the repository at this point in the history
  • Loading branch information
vomikan committed Jun 30, 2023
1 parent c634e8e commit 9f4aee6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/import_export/univcsvdialog.cpp
Expand Up @@ -1400,9 +1400,9 @@ void mmUnivCSVDialog::OnImport(wxCommandEvent& WXUNUSED(event))
}

wxString trxDate = holder.Date.FormatISODate();
account = Model_Account::instance().get(accountID_);
Model_Account::Data* account2 = Model_Account::instance().get(accountID_);
const Model_Account::Data* toAccount = Model_Account::instance().get(holder.ToAccountID);
if ((trxDate < account->INITIALDATE) ||
if ((trxDate < account2->INITIALDATE) ||
(toAccount && (trxDate < toAccount->INITIALDATE)))
{
wxString msg = wxString::Format(_("Line %ld: %s"), nLines + 1,
Expand Down

0 comments on commit 9f4aee6

Please sign in to comment.