0001-Fix-WebEngine-cache-directory-path.patch 926 B

123456789101112131415161718192021222324252627
  1. From e155e6e70ce7a6c52837688b570e8020faac5496 Mon Sep 17 00:00:00 2001
  2. From: Fabian Vogt <fabian@ritter-vogt.de>
  3. Date: Sat, 8 Sep 2018 18:58:42 +0200
  4. Subject: [PATCH] Fix WebEngine cache directory path
  5. Otherwise the URL is treated as a path, which results in a folder "file:" in ~.
  6. ---
  7. src/browser-request.cpp | 2 +-
  8. 1 file changed, 1 insertion(+), 1 deletion(-)
  9. diff --git a/src/browser-request.cpp b/src/browser-request.cpp
  10. index 146bec8..1895d59 100644
  11. --- a/src/browser-request.cpp
  12. +++ b/src/browser-request.cpp
  13. @@ -132,7 +132,7 @@ void BrowserRequestPrivate::start()
  14. m_dialog->rootContext()->setContextProperty("request", this);
  15. m_dialog->rootContext()->setContextProperty("rootDir",
  16. - QUrl::fromLocalFile(rootDir.absolutePath()));
  17. + rootDir.absolutePath());
  18. m_dialog->setSource(webview);
  19. }
  20. --
  21. 2.18.0