summaryrefslogtreecommitdiffstats
path: root/kmymoney2/dialogs/tdeconfirmmanualenterdlg.cpp
diff options
context:
space:
mode:
authorSlávek Banko <[email protected]>2022-03-17 18:50:52 +0100
committerSlávek Banko <[email protected]>2022-03-20 18:50:39 +0100
commit49e34b02b0bb609ce6e9ff1d2d96bdfcb03617d1 (patch)
treef8299219a274dedc710b0bbf0ff1be832d47f197 /kmymoney2/dialogs/tdeconfirmmanualenterdlg.cpp
parenta553069ad068dcab541282df24dbe12591153af8 (diff)
downloadkmymoney-49e34b02b0bb609ce6e9ff1d2d96bdfcb03617d1.tar.gz
kmymoney-49e34b02b0bb609ce6e9ff1d2d96bdfcb03617d1.zip
Added controlled conversions to char* instead of automatic ascii conversions.
The definition of -UTQT_NO_ASCII_CAST is no longer needed. Signed-off-by: Slávek Banko <[email protected]> (cherry picked from commit 5e6c401557744fe5f9765471605cc793939fee1f)
Diffstat (limited to 'kmymoney2/dialogs/tdeconfirmmanualenterdlg.cpp')
-rw-r--r--kmymoney2/dialogs/tdeconfirmmanualenterdlg.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/kmymoney2/dialogs/tdeconfirmmanualenterdlg.cpp b/kmymoney2/dialogs/tdeconfirmmanualenterdlg.cpp
index 84609a0..fd7f41b 100644
--- a/kmymoney2/dialogs/tdeconfirmmanualenterdlg.cpp
+++ b/kmymoney2/dialogs/tdeconfirmmanualenterdlg.cpp
@@ -80,9 +80,9 @@ void KConfirmManualEnterDlg::loadTransactions(const MyMoneyTransaction& to, cons
try
{
TQString po, pn;
- if(to.splits()[0].payeeId())
+ if(!to.splits()[0].payeeId().isEmpty())
po = file->payee(to.splits()[0].payeeId()).name();
- if(tn.splits()[0].payeeId())
+ if(!tn.splits()[0].payeeId().isEmpty())
pn = file->payee(tn.splits()[0].payeeId()).name();
if (po != pn) {