From beeb9078f543af84e6364f1f5fe214453388f1b9 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Tue, 17 Apr 2012 22:19:18 +0200 Subject: 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 --- src/views/tooltips/tooltipmanager.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/views/tooltips/tooltipmanager.cpp') diff --git a/src/views/tooltips/tooltipmanager.cpp b/src/views/tooltips/tooltipmanager.cpp index 8b2e98dae..d948bfd86 100644 --- a/src/views/tooltips/tooltipmanager.cpp +++ b/src/views/tooltips/tooltipmanager.cpp @@ -21,6 +21,7 @@ #include "filemetadatatooltip.h" #include +#include #include #include @@ -128,6 +129,9 @@ void ToolTipManager::startContentRetrieval() KIO::PreviewJob* job = new KIO::PreviewJob(KFileItemList() << m_item, QSize(256, 256)); job->setIgnoreMaximumSize(m_item.isLocalFile()); + if (job->ui()) { + job->ui()->setWindow(qApp->activeWindow()); + } connect(job, SIGNAL(gotPreview(KFileItem,QPixmap)), this, SLOT(setPreviewPix(KFileItem,QPixmap))); -- cgit v1.3