diff options
| author | Peter Penz <[email protected]> | 2012-04-17 22:19:18 +0200 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2012-04-17 22:21:55 +0200 |
| commit | beeb9078f543af84e6364f1f5fe214453388f1b9 (patch) | |
| tree | a233ca14a66e67896642e723b89870ed4ecb3181 /src/panels/search/searchpanel.cpp | |
| parent | 9f94aac23f8b6519de4847063fa20f588f9797ea (diff) | |
Ensure authentication data is cached properly
The attached patch sets the main window on the main directory
lister in DolphinView and KIO jobs in DolphinMainWindow to ensure
that login data for remote protocols such as sftp, ftp are cached
properly for the duration of the application. Otherwise, the end
user is going to end up being unnecessarily re-prompted to enter
password login information.
Thanks to Dawit Alemayehu for the patch!
REVIEW: 104614
FIXED-IN: 4.9.0
Diffstat (limited to 'src/panels/search/searchpanel.cpp')
| -rw-r--r-- | src/panels/search/searchpanel.cpp | 6 |
1 files changed, 5 insertions, 1 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 { |
