summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathan Bauer2012-02-23 11:52:03 +0100
committerJonathan Bauer2012-02-23 11:52:03 +0100
commit1b3c92ef029422f04121cd568b26818ee71ead62 (patch)
tree4decf788b3ab1ba9c9c6e6c33ea5b58845cde739
parentimproved user choice coding... (diff)
downloadfbgui-1b3c92ef029422f04121cd568b26818ee71ead62.tar.gz
fbgui-1b3c92ef029422f04121cd568b26818ee71ead62.tar.xz
fbgui-1b3c92ef029422f04121cd568b26818ee71ead62.zip
fix for user dialog showing every time
-rw-r--r--src/fbgui/networkdiscovery.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/fbgui/networkdiscovery.cpp b/src/fbgui/networkdiscovery.cpp
index da9a148..fe54ed2 100644
--- a/src/fbgui/networkdiscovery.cpp
+++ b/src/fbgui/networkdiscovery.cpp
@@ -52,6 +52,7 @@ NetworkDiscovery::~NetworkDiscovery() {
void NetworkDiscovery::init(QStringList* args) {
+ _userChoice = false;
_blocked = false;
_numberOfProcesses = 0;
_ifUpCountdown = 10;
@@ -361,7 +362,7 @@ void NetworkDiscovery::handleProcessFinished(int exitCode,
if (checkConnectivity(ifName)) {
_ifConnectedList.append(ifName);
if (!_userChoice) {
- // blockiere jeden weiteren check
+ LOG4CXX_DEBUG(ndcLogger, "Found working interface, blocking other processes...");
_blocked = true;
emit allProcessesFinished(_userChoice);
}
@@ -373,8 +374,8 @@ void NetworkDiscovery::handleProcessFinished(int exitCode,
if (client != 0) {
handleNewInput(client);
}
- //_numberOfProcesses = _numberOfProcesses - 1; && _userChoice
if (_numberOfProcesses <= 0) {
+ LOG4CXX_DEBUG(ndcLogger, "No process remaining...");
emit allProcessesFinished(_userChoice);
}
}