summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRolf Eike Beer <eb@emlix.com>2016-06-28 12:13:58 (GMT)
committerRolf Eike Beer <kde@opensource.sf-tec.de>2016-06-28 18:05:36 (GMT)
commit66474c6460da5e56a7c9ebcea3e54bb874c1aa61 (patch)
tree80e12e23b58c85e9762335f0bb5763ed8be03405
parentd8887e0931d75dc635e32ee664d463007ebe409a (diff)
fix Q_ASSERTs
Now that this class itself is a QObject the sender is set in this class.
-rw-r--r--transactions/kgpgtransactionprivate.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/transactions/kgpgtransactionprivate.cpp b/transactions/kgpgtransactionprivate.cpp
index 56fdc73..a96e411 100644
--- a/transactions/kgpgtransactionprivate.cpp
+++ b/transactions/kgpgtransactionprivate.cpp
@@ -201,6 +201,8 @@ KGpgTransactionPrivate::slotReadReady()
void
KGpgTransactionPrivate::slotProcessExited()
{
+ Q_ASSERT(sender() == m_process);
+
m_ownProcessFinished = true;
if (m_inputProcessDone)
@@ -235,7 +237,7 @@ KGpgTransactionPrivate::sendQuit(void)
void
KGpgTransactionPrivate::slotInputTransactionDone(int result)
{
- Q_ASSERT(m_parent->sender() == m_inputTransaction);
+ Q_ASSERT(sender() == m_inputTransaction);
m_inputProcessDone = true;
m_inputProcessResult = result;
@@ -254,7 +256,7 @@ KGpgTransactionPrivate::slotPassphraseEntered(const QString &passphrase)
m_newPasswordDialog = Q_NULLPTR;
m_parent->newPassphraseEntered();
} else {
- Q_ASSERT(m_parent->sender() == m_passwordDialog);
+ Q_ASSERT(sender() == m_passwordDialog);
}
}