[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:21:34 UTC 2016
Gitweb-URL: http://git.debian.org/?p=pkg-kde/applications/ktp-text-ui.git;a=commitdiff;h=fc274b6
The following commit has been merged in the master branch:
commit fc274b66b55468e857d70641a2da49193c5160c9
Author: Daniele E. Domenichelli <daniele.domenichelli at gmail.com>
Date: Wed Mar 21 04:34:40 2012 +0100
Disconnect StyleDirListener before deleting it
---
lib/chat-window-style-manager.cpp | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/lib/chat-window-style-manager.cpp b/lib/chat-window-style-manager.cpp
index b12f609..29eb47d 100644
--- a/lib/chat-window-style-manager.cpp
+++ b/lib/chat-window-style-manager.cpp
@@ -41,17 +41,20 @@
class ChatWindowStyleManager::Private
{
public:
- Private()
- : styleDirLister(0) {}
+ Private(ChatWindowStyleManager *parent)
+ : q(parent), styleDirLister(0) {}
~Private() {
if (styleDirLister) {
+ q->disconnect(styleDirLister, SIGNAL(newItems(KFileItemList)), q, SLOT(slotNewStyles(KFileItemList)));
+ q->disconnect(styleDirLister, SIGNAL(completed()), q, SLOT(slotDirectoryFinished()));
styleDirLister->deleteLater();
}
qDeleteAll(stylePool);
}
+ ChatWindowStyleManager *q;
KDirLister *styleDirLister;
QMap <QString, QString > availableStyles;
@@ -68,7 +71,7 @@ ChatWindowStyleManager *ChatWindowStyleManager::self()
}
ChatWindowStyleManager::ChatWindowStyleManager(QObject *parent)
- : QObject(parent), d(new Private())
+ : QObject(parent), d(new Private(this))
{
kDebug() ;
loadStyles();
--
ktp-text-ui packaging
More information about the pkg-kde-commits
mailing list