diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2022-03-17 18:50:52 +0100 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2022-03-18 12:45:32 +0100 |
commit | 5e6c401557744fe5f9765471605cc793939fee1f (patch) | |
tree | fa1c9abe564d03a362378f8a7a6304e27baf9c33 /kmymoney2/views/khomeview.cpp | |
parent | eeae53f59df4d79d0399c2217a165ff2fab754db (diff) | |
download | kmymoney-5e6c401557744fe5f9765471605cc793939fee1f.tar.gz kmymoney-5e6c401557744fe5f9765471605cc793939fee1f.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 <slavek.banko@axis.cz>
Diffstat (limited to 'kmymoney2/views/khomeview.cpp')
-rw-r--r-- | kmymoney2/views/khomeview.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/kmymoney2/views/khomeview.cpp b/kmymoney2/views/khomeview.cpp index 86157f4..8b98b2a 100644 --- a/kmymoney2/views/khomeview.cpp +++ b/kmymoney2/views/khomeview.cpp @@ -636,7 +636,7 @@ void KHomeView::showPaymentEntry(const MyMoneySchedule& sched, int cnt) try { MyMoneyAccount acc = sched.account(); - if(acc.id()) { + if(!acc.id().isEmpty()) { MyMoneyTransaction t = sched.transaction(); // only show the entry, if it is still active // FIXME clean old code @@ -1177,7 +1177,7 @@ void KHomeView::slotOpenURL(const KURL &url, const KParts::URLArgs& /* args */) } else if(view == "action") { TDEMainWindow* mw = dynamic_cast<TDEMainWindow*>(tqApp->mainWidget()); TQ_CHECK_PTR(mw); - TQTimer::singleShot(0, mw->actionCollection()->action( id ), TQT_SLOT(activate())); + TQTimer::singleShot(0, mw->actionCollection()->action(id.utf8()), TQT_SLOT(activate())); } else if(view == VIEW_HOME) { TQValueList<MyMoneyAccount> list; @@ -1653,7 +1653,7 @@ void KHomeView::showCashFlowSummary() } MyMoneyAccount acc = (*sched_it).account(); - if(acc.id()) { + if(!acc.id().isEmpty()) { MyMoneyTransaction transaction = (*sched_it).transaction(); // only show the entry, if it is still active |