[telepathy] [Bug 390964] Crash when clicking [Settings -> Configure Chat Application...] version 17.12.2

bugzilla_noreply at kde.org bugzilla_noreply at kde.org
Mon Aug 12 23:05:08 BST 2019


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

danjaredg at gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |danjaredg at gmail.com

--- Comment #9 from danjaredg at gmail.com ---
I use KdeNEON and it is frustrating that this package is not updated, to avoid
this error, along with the text-ui viewer, I run the following script.


apt install pidgin-sipe kde-telepathy

# (you need activate "dep-src" en /etc/apt/source.list)

mkdir ktp-text-ui-fix
cd ktp-text-ui-fix
    apt install build-essential devscripts
    apt source kde-telepathy-text-ui
    apt build-dep kde-telepathy-text-ui
    cd ktp-text-ui-*
    patch -p1 << "EOF"
--- 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);
     }
EOF
patch -p1 << "EOF"
--- a/app/chat-window.cpp
+++ b/app/chat-window.cpp
@@ -53,6 +53,7 @@
 #include <QLabel>
 #include <QLineEdit>
 #include <QMouseEvent>
+#include <QScrollArea>

 #include <TelepathyQt/Account>
 #include <TelepathyQt/ContactCapabilities>
@@ -760,7 +761,9 @@ void ChatWindow::showSettingsDialog()
     KSettings::Dialog *dialog = new KSettings::Dialog(this);

     KPageWidgetItem *configPage =
dialog->addModule(QLatin1String("kcm_ktp_chat_appearance"));
-    KCModuleProxy *proxy = qobject_cast<KCModuleProxy*>(configPage->widget());
+    QScrollArea *moduleScroll =
qobject_cast<QScrollArea*>(configPage->widget());
+    Q_ASSERT(moduleScroll);
+    KCModuleProxy *proxy =
qobject_cast<KCModuleProxy*>(moduleScroll->widget());
     Q_ASSERT(proxy);

     connect(proxy->realModule(), SIGNAL(reloadTheme()),
@@ -770,7 +773,9 @@ void ChatWindow::showSettingsDialog()
     dialog->addModule(QLatin1String("kcm_ktp_chat_messages"));

     KPageWidgetItem *otrConfigPage =
dialog->addModule(QLatin1String("kcm_ktp_chat_otr"));
-    proxy = qobject_cast<KCModuleProxy*>(otrConfigPage->widget());
+    moduleScroll = qobject_cast<QScrollArea*>(otrConfigPage->widget());
+    Q_ASSERT(moduleScroll);
+    proxy = qobject_cast<KCModuleProxy*>(moduleScroll->widget());
     Q_ASSERT(proxy);
     QVariant value;
     value.setValue(m_proxyService);
EOF

debchange -i

# (you need change the first line with: ktp-text-ui (4:17.12.3-0ubuntu2)
bionic; urgency=medium)

dpkg-source --commit
debuild -us -uc -i -I
cd ..
dpkg -i kde-telepathy-text-ui_*.deb

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


More information about the Kde-telepathy-bugs mailing list