Skip to content

Commit

Permalink
Merge pull request #5013 from whalley/master
Browse files Browse the repository at this point in the history
fix(#5012): fix
  • Loading branch information
vomikan committed Sep 1, 2022
2 parents a4ccb50 + 4aeff57 commit b6d4177
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/splittransactionsdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ void mmSplitTransactionDialog::CreateControls()
mmComboBoxCategory* cbc = new mmComboBoxCategory(slider_, wxID_HIGHEST + i);
cbc->SetName(wxString::Format("category_box%i", i));
cbc->Bind(wxEVT_CHAR_HOOK, &mmSplitTransactionDialog::OnComboKey, this);
cbc->SetMinSize(wxSize(250,-1));

mmTextCtrl* val = new mmTextCtrl(slider_, wxID_HIGHEST + i, ""
, wxDefaultPosition, wxDefaultSize, wxALIGN_RIGHT | wxTE_PROCESS_ENTER, mmCalcValidator(), m_currency);
Expand Down Expand Up @@ -382,6 +383,7 @@ void mmSplitTransactionDialog::mmDoEnableLineById(int id)
, wxString::Format("check_box%i", i));
mmComboBoxCategory* ncbc = new mmComboBoxCategory(slider_, wxID_HIGHEST + i);
ncbc->Bind(wxEVT_CHAR_HOOK, &mmSplitTransactionDialog::OnComboKey, this);
ncbc->SetMinSize(wxSize(250,-1));
ncb->Disable();
ncb->Hide();
ncbc->SetName(wxString::Format("category_box%i", i));
Expand Down Expand Up @@ -435,6 +437,7 @@ void mmSplitTransactionDialog::OnTextEntered(wxCommandEvent& event)
}

UpdateSplitTotal();
event.Skip();
}

bool mmSplitTransactionDialog::mmDoCheckRow(int i, bool silent)
Expand Down Expand Up @@ -495,6 +498,7 @@ void mmSplitTransactionDialog::OnFocusChange(wxChildFocusEvent& event)
if (w && !w->GetName().empty()) {
row_num_ = w->GetId() - wxID_HIGHEST;
}
event.Skip();
}

void mmSplitTransactionDialog::OnComboKey(wxKeyEvent& event)
Expand Down
2 changes: 1 addition & 1 deletion src/transdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ void mmTransDialog::dataToControls()
bSplit_->UnsetToolTip();
if (has_split)
{
cbCategory_->SetLabelText(_("Split Transaction"));
cbCategory_->ChangeValue(_("Split Transaction"));
cbCategory_->Disable();
m_textAmount->SetValue(Model_Splittransaction::get_total(m_local_splits));
m_trx_data.CATEGID = -1;
Expand Down

0 comments on commit b6d4177

Please sign in to comment.