diff -Nru kadu-0.11.1/debian/changelog kadu-0.11.1/debian/changelog --- kadu-0.11.1/debian/changelog 2012-02-28 08:19:06.000000000 +0100 +++ kadu-0.11.1/debian/changelog 2012-04-05 11:06:59.000000000 +0200 @@ -1,3 +1,12 @@ +kadu (0.11.1-3) unstable; urgency=low + + * Backported the following fix of kadu_completion plugin from upstream + repository: + git://gitorious.org/mime_tex/kadu_completion.git + The backported commit's fix: dfa94a16d3ff51e9bc05996836e4d46627d93d84 + + -- Patryk Cisek Wed, 04 Apr 2012 15:15:58 +0200 + kadu (0.11.1-2) unstable; urgency=low * Fixed serious mistake in changelog entry for 0.11.1-1: diff -Nru kadu-0.11.1/debian/patches/05-kadu_completion_fix.patch kadu-0.11.1/debian/patches/05-kadu_completion_fix.patch --- kadu-0.11.1/debian/patches/05-kadu_completion_fix.patch 1970-01-01 01:00:00.000000000 +0100 +++ kadu-0.11.1/debian/patches/05-kadu_completion_fix.patch 2012-04-05 11:06:59.000000000 +0200 @@ -0,0 +1,32 @@ +Description: Fixes crash in kadu_completion plugin + Backported bug fix from upstream introduced in commit: + 22114011400000209167001001. The repository is here: + git://gitorious.org/mime_tex/kadu_completion.git +Author: Patryk Cisek +--- +diff --git a/externalplugins/kadu_completion/completion_context.cpp b/externalplugins/kadu_completion/completion_context.cpp +index 7069aaa..521659b 100644 +--- a/externalplugins/kadu_completion/completion_context.cpp ++++ b/externalplugins/kadu_completion/completion_context.cpp +@@ -16,6 +16,7 @@ KaduCompletion::CompletionContext::CompletionContext(const KaduCompletion::Emoti + else { + connect(edit, SIGNAL(keyPressed(QKeyEvent*,CustomInput*,bool&)), + this, SLOT(keyPressed(QKeyEvent*,CustomInput*,bool&))); ++ connect(edit, SIGNAL(destroyed()), this, SLOT(deleteLater())); + } + } + +diff --git a/externalplugins/kadu_completion/kadu_completion.cpp b/externalplugins/kadu_completion/kadu_completion.cpp +index d4286ee..c031b5a 100644 +--- a/externalplugins/kadu_completion/kadu_completion.cpp ++++ b/externalplugins/kadu_completion/kadu_completion.cpp +@@ -36,7 +36,8 @@ void KaduCompletion::KaduCompletion::destroyInstance() { + } + + void KaduCompletion::KaduCompletion::chatWidgetCreated(ChatWidget *chatWidget) { +- new CompletionContext(_list, chatWidget->edit()); ++ CompletionContext *newContext = new CompletionContext(_list, chatWidget->edit()); ++ connect(this, SIGNAL(destroyed()), newContext, SLOT(deleteLater())); + } + + KaduCompletion::KaduCompletion::KaduCompletion() { diff -Nru kadu-0.11.1/debian/patches/series kadu-0.11.1/debian/patches/series --- kadu-0.11.1/debian/patches/series 2012-02-28 08:19:06.000000000 +0100 +++ kadu-0.11.1/debian/patches/series 2012-04-05 11:06:59.000000000 +0200 @@ -2,3 +2,4 @@ 02-external-plugins.patch 03-about-dialog.patch 04-lowered_expectant_libgadu_version.patch +05-kadu_completion_fix.patch