[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [kdelibs/frameworks] tier1/kdbusaddons/src: Assert instead of simply crashing if the app object is g
From: Kevin Ottens <ervin+bluesystems () kde ! org>
Date: 2013-08-27 14:05:30
Message-ID: E1VEJti-0005xN-8m () scm ! kde ! org
[Download RAW message or body]
Git commit f3ccd71c67eda7567802c049f1487385045d06f3 by Kevin Ottens.
Committed on 27/08/2013 at 09:47.
Pushed by ervin into branch 'frameworks'.
Assert instead of simply crashing if the app object is gone
M +1 -0 tier1/kdbusaddons/src/kdbusconnectionpool.cpp
http://commits.kde.org/kdelibs/f3ccd71c67eda7567802c049f1487385045d06f3
diff --git a/tier1/kdbusaddons/src/kdbusconnectionpool.cpp \
b/tier1/kdbusaddons/src/kdbusconnectionpool.cpp index fc0ba28..e03ebd8 \
100644
--- a/tier1/kdbusaddons/src/kdbusconnectionpool.cpp
+++ b/tier1/kdbusaddons/src/kdbusconnectionpool.cpp
@@ -61,6 +61,7 @@ static QThreadStorage<KDBusConnectionPoolPrivate *> \
s_perThreadConnection;
QDBusConnection KDBusConnectionPool::threadConnection()
{
+ Q_ASSERT(QCoreApplication::instance() != 0);
if (QCoreApplication::instance()->thread() == \
QThread::currentThread()) { return QDBusConnection::sessionBus();
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic