diff options
Diffstat (limited to 'src/panels/search')
| -rw-r--r-- | src/panels/search/searchpanel.cpp | 6 | ||||
| -rw-r--r-- | src/panels/search/searchpanel.h | 13 |
2 files changed, 14 insertions, 5 deletions
diff --git a/src/panels/search/searchpanel.cpp b/src/panels/search/searchpanel.cpp index a78828e0d..fd4195f54 100644 --- a/src/panels/search/searchpanel.cpp +++ b/src/panels/search/searchpanel.cpp @@ -38,8 +38,9 @@ #include <search/dolphinsearchinformation.h> #include <KFileItem> -#include <KIO/JobClasses> #include <KIO/Job> +#include <KIO/JobClasses> +#include <KIO/JobUiDelegate> #include <KMenu> #include <QPushButton> @@ -101,6 +102,9 @@ bool SearchPanel::urlChanged() // Reset the current query and disable the facet-widget until // the new query has been determined by KIO::stat(): m_lastSetUrlStatJob = KIO::stat(url(), KIO::HideProgressInfo); + if (m_lastSetUrlStatJob->ui()) { + m_lastSetUrlStatJob->ui()->setWindow(this); + } connect(m_lastSetUrlStatJob, SIGNAL(result(KJob*)), this, SLOT(slotSetUrlStatFinished(KJob*))); } else { diff --git a/src/panels/search/searchpanel.h b/src/panels/search/searchpanel.h index ae34b20c6..4ea7e121e 100644 --- a/src/panels/search/searchpanel.h +++ b/src/panels/search/searchpanel.h @@ -23,10 +23,15 @@ #include <Nepomuk/Query/Query> #include <panels/panel.h> -class KJob; +namespace KIO +{ + class Job; +}; -namespace Nepomuk { - namespace Utils { +namespace Nepomuk +{ + namespace Utils + { class FacetWidget; } } @@ -92,7 +97,7 @@ private: private: bool m_initialized; SearchLocation m_searchLocation; - KJob* m_lastSetUrlStatJob; + KIO::Job* m_lastSetUrlStatJob; KUrl m_startedFromDir; Nepomuk::Utils::FacetWidget* m_facetWidget; |
