[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: =?utf-8?q?=5Bbluedevil=5D_src/daemon/helpers/requestpin=3A_Flush?=
From: Alex Fiestas <afiestas () kde ! org>
Date: 2011-02-21 2:36:31
Message-ID: 20110221023631.16B67A60B4 () git ! kde ! org
[Download RAW message or body]
Git commit 8d9adbf88a1f838eeb91c4e9b248ddc47549a8df by Alex Fiestas.
Committed on 20/02/2011 at 20:15.
Pushed by afiestas into branch 'master'.
Flush cout before exit the applition.
Some times the pin doesn't arrive to the agentListener and that
happens because cout is not flushed.
M +1 -0 src/daemon/helpers/requestpin/requestpin.cpp
http://commits.kde.org/bluedevil/8d9adbf88a1f838eeb91c4e9b248ddc47549a8df
diff --git a/src/daemon/helpers/requestpin/requestpin.cpp b/src/daemon/helpers/requestpin/requestpin.cpp
index 9061b73..232a305 100644
--- a/src/daemon/helpers/requestpin/requestpin.cpp
+++ b/src/daemon/helpers/requestpin/requestpin.cpp
@@ -97,6 +97,7 @@ void RequestPin::introducePin()
dialogWidget->pin->setFocus(Qt::ActiveWindowFocusReason);
if (dialog->exec() == KDialog::Accepted) {
cout << dialogWidget->pin->text().toLatin1().data();
+ flush(cout);
qApp->exit(0);
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic