From 6cfb2ba0ca1968ee182ce7b5def42536e1ef24b3 Mon Sep 17 00:00:00 2001 From: Francois Andriot Date: Fri, 14 Mar 2014 16:34:13 +0100 Subject: Fix localURL signal This relates to Bug 1902 --- libkonq/konq_popupmenu.cc | 4 ++-- libkonq/konq_popupmenu.h | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/libkonq/konq_popupmenu.cc b/libkonq/konq_popupmenu.cc index a2bc18565..e5b807327 100644 --- a/libkonq/konq_popupmenu.cc +++ b/libkonq/konq_popupmenu.cc @@ -425,7 +425,7 @@ void KonqPopupMenu::setup(KonqPopupFlags kpf) if (!realURL.isLocalFile()) { TDEIO::LocalURLJob* localURLJob = TDEIO::localURL(m_sViewURL); if (localURLJob) { - connect(localURLJob, TQT_SIGNAL(localURL(TDEIO::Job*, const KURL&, bool)), this, TQT_SLOT(slotLocalURL(TDEIO::Job*, const KURL&, bool))); + connect(localURLJob, TQT_SIGNAL(localURL(TDEIO::LocalURLJob*, const KURL&, bool)), this, TQT_SLOT(slotLocalURL(TDEIO::LocalURLJob*, const KURL&, bool))); connect(localURLJob, TQT_SIGNAL(destroyed()), this, TQT_SLOT(slotLocalURLKIODestroyed())); d->localURLSlotFired = false; while (!d->localURLSlotFired) { @@ -1226,7 +1226,7 @@ KURL::List KonqPopupMenu::popupURLList() const return m_lstPopupURLs; } -void KonqPopupMenu::slotLocalURL(TDEIO::Job *job, const KURL& url, bool isLocal) +void KonqPopupMenu::slotLocalURL(TDEIO::LocalURLJob *job, const KURL& url, bool isLocal) { d->localURLSlotFired = true; d->localURLResultURL = url; diff --git a/libkonq/konq_popupmenu.h b/libkonq/konq_popupmenu.h index 4be069561..5785d53ab 100644 --- a/libkonq/konq_popupmenu.h +++ b/libkonq/konq_popupmenu.h @@ -34,6 +34,7 @@ #include #include +#include #include "konq_xmlguiclient.h" @@ -178,7 +179,7 @@ protected: TDEActionCollection m_ownActions; private slots: - void slotLocalURL( TDEIO::Job *, const KURL&, bool ); + void slotLocalURL( TDEIO::LocalURLJob *, const KURL&, bool ); void slotLocalURLKIODestroyed( ); private: -- cgit v1.2.1