[telepathy] [Bug 392455] New: ktp-text-ui does not display content with Qt 5.11

Eugene Shalygin bugzilla_noreply at kde.org
Wed Mar 28 15:25:48 BST 2018


https://bugs.kde.org/show_bug.cgi?id=392455

            Bug ID: 392455
           Summary: ktp-text-ui does not display content with Qt 5.11
           Product: telepathy
           Version: git-latest
          Platform: Other
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: text-ui
          Assignee: kde-telepathy-bugs at kde.org
          Reporter: eugene.shalygin+bugzilla.kde at gmail.com
  Target Milestone: Future

Contents is not displayed and KIOExec error is shown instead. Seems like the
problem is rejecting data:// URLs which are used by QWebEnginePage::setHtml().
The following patch makes it work.

diff --git a/lib/adium-theme-view.cpp b/lib/adium-theme-view.cpp
index 3b37285..3819788 100644
--- a/lib/adium-theme-view.cpp
+++ b/lib/adium-theme-view.cpp
@@ -68,6 +68,8 @@ bool AdiumThemePage::acceptNavigationRequest(const QUrl &url,
QWebEnginePage::Na
         Q_EMIT nextConversation();
     } else if (url.fragment() == QLatin1String("x-prevConversation")) {
         Q_EMIT prevConversation();
+    } else if (url.scheme() == QLatin1String("data")) {
+        return true;
     } else {
         QDesktopServices::openUrl(url);
     }

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Kde-telepathy-bugs mailing list