|
Post by tharight on Nov 3, 2020 3:08:29 GMT
in the file splitdetailsdialog.cpp this function:
void SplitDetailDialog::DataToControls() { const wxString& category_name = Model_Category::full_name(split_.CATEGID , split_.SUBCATEGID); m_bcategory->SetLabelText(category_name);
if (split_.SPLITTRANSAMOUNT) m_text_mount->SetValue(split_.SPLITTRANSAMOUNT, Model_Currency::precision(m_currency));
if (category_name.empty()) { m_text_mount->SetFocus(); m_text_mount->SelectAll(); } }
should be:
void SplitDetailDialog::DataToControls() { const wxString& category_name = Model_Category::full_name(split_.CATEGID , split_.SUBCATEGID); m_bcategory->SetLabelText(category_name);
if (split_.SPLITTRANSAMOUNT) m_text_mount->SetValue(split_.SPLITTRANSAMOUNT, Model_Currency::precision(m_currency));
if (category_name.empty()) { m_text_mount->SetFocus(); m_text_mount->SelectAll(); m_bcategory->SetLabelText("Select Category"); } }
the line: m_bcategory->SetLabelText("Select Category"); should be added in this [if] statement: if (category_name.empty()) { m_text_mount->SetFocus(); m_text_mount->SelectAll(); m_bcategory->SetLabelText("Select Category"); <--------the statement that needs to be added }
|
|