diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-01-14 01:10:51 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-01-14 01:10:51 -0600 |
commit | 2a54aa58cfe166f48d6f1395cbc6c9bfd5e31bfc (patch) | |
tree | 673921e3e9310f55904ccd88962f74c401686758 /kmymoney2/dialogs | |
parent | 7b2485b7a44922b7a5ceec8159d22cd579f5d416 (diff) | |
download | kmymoney-2a54aa58cfe166f48d6f1395cbc6c9bfd5e31bfc.tar.gz kmymoney-2a54aa58cfe166f48d6f1395cbc6c9bfd5e31bfc.zip |
Fix a number of crashes
Diffstat (limited to 'kmymoney2/dialogs')
-rw-r--r-- | kmymoney2/dialogs/kcategoryreassigndlg.cpp | 6 | ||||
-rw-r--r-- | kmymoney2/dialogs/knewloanwizard.cpp | 2 | ||||
-rw-r--r-- | kmymoney2/dialogs/kpayeereassigndlg.cpp | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/kmymoney2/dialogs/kcategoryreassigndlg.cpp b/kmymoney2/dialogs/kcategoryreassigndlg.cpp index 4de99f6..beb8e98 100644 --- a/kmymoney2/dialogs/kcategoryreassigndlg.cpp +++ b/kmymoney2/dialogs/kcategoryreassigndlg.cpp @@ -53,7 +53,7 @@ KCategoryReassignDlg::~KCategoryReassignDlg() TQString KCategoryReassignDlg::show(const MyMoneyAccount& category) { if (category.id().isEmpty()) - return TQString(); // no payee available? nothing can be selected... + return TQString::null; // no payee available? nothing can be selected... AccountSet set; set.addAccountGroup(MyMoneyAccount::Income); @@ -79,12 +79,12 @@ TQString KCategoryReassignDlg::show(const MyMoneyAccount& category) // if there is no category for reassignment left, we bail out if(list.isEmpty()) { KMessageBox::sorry(this, TQString("<qt>")+i18n("At least one transaction/schedule still references the category <b>%1</b>. However, at least one category with the same currency must exist so that the transactions/schedules can be reassigned.").arg(category.name())+TQString("</qt>")); - return TQString(); + return TQString::null; } // execute dialog and if aborted, return empty string if (this->exec() == TQDialog::Rejected) - return TQString(); + return TQString::null; // otherwise return index of selected payee return m_category->selectedItem(); diff --git a/kmymoney2/dialogs/knewloanwizard.cpp b/kmymoney2/dialogs/knewloanwizard.cpp index 884807f..87baaf9 100644 --- a/kmymoney2/dialogs/knewloanwizard.cpp +++ b/kmymoney2/dialogs/knewloanwizard.cpp @@ -1072,7 +1072,7 @@ int KNewLoanWizard::term(void) const TQString KNewLoanWizard::initialPaymentAccount(void) const { if(m_dontCreatePayoutCheckBox->isChecked()) { - return TQString(); + return TQString::null; } return m_assetAccountEdit->selectedItems().first(); } diff --git a/kmymoney2/dialogs/kpayeereassigndlg.cpp b/kmymoney2/dialogs/kpayeereassigndlg.cpp index 0c3c0cf..1db13f1 100644 --- a/kmymoney2/dialogs/kpayeereassigndlg.cpp +++ b/kmymoney2/dialogs/kpayeereassigndlg.cpp @@ -53,13 +53,13 @@ KPayeeReassignDlg::~KPayeeReassignDlg() TQString KPayeeReassignDlg::show(const TQValueList<MyMoneyPayee>& payeeslist) { if (payeeslist.isEmpty()) - return TQString(); // no payee available? nothing can be selected... + return TQString::null; // no payee available? nothing can be selected... payeeCombo->loadPayees(payeeslist); // execute dialog and if aborted, return empty string if (this->exec() == TQDialog::Rejected) - return TQString(); + return TQString::null; // otherwise return index of selected payee return payeeCombo->selectedItem(); |