[SCM] ktp-text-ui packaging branch, master, updated. debian/15.12.1-1-1918-gdf4b0ec
Maximiliano Curia
maxy at moszumanska.debian.org
Sat May 28 00:24:03 UTC 2016
Gitweb-URL: http://git.debian.org/?p=pkg-kde/applications/ktp-text-ui.git;a=commitdiff;h=b75a4f1
The following commit has been merged in the master branch:
commit b75a4f1ba4bea95071b5faca84ee2d83e89215dc
Author: David Edmundson <kde at davidedmundson.co.uk>
Date: Tue Jul 9 00:03:09 2013 +0100
Add a guard that the current tab exists on a window activated event
This fixes a crash
BUG: 322135
Fixed-in: 0.6.3
Reviewed-by: Sven Brauch
---
app/chat-window.cpp | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/app/chat-window.cpp b/app/chat-window.cpp
index c047235..638f120 100644
--- a/app/chat-window.cpp
+++ b/app/chat-window.cpp
@@ -858,8 +858,11 @@ bool ChatWindow::event(QEvent *e)
if (e->type() == QEvent::WindowActivate) {
//when the window is activated reset the message count on the active tab.
ChatWidget *currChat = qobject_cast<ChatWidget*>(m_tabWidget->currentWidget());
- Q_ASSERT(currChat);
- currChat->acknowledgeMessages();
+ //it is (apparently) possible to get a window activation event whilst we're closing down and have no tabs
+ //see https://bugs.kde.org/show_bug.cgi?id=322135
+ if (currChat) {
+ currChat->acknowledgeMessages();
+ }
}
return KXmlGuiWindow::event(e);
--
ktp-text-ui packaging
More information about the pkg-kde-commits
mailing list