summaryrefslogtreecommitdiffstats
path: root/kmymoney2/views/khomeview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kmymoney2/views/khomeview.cpp')
-rw-r--r--kmymoney2/views/khomeview.cpp6
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