[tor-commits] [vidalia/alpha] Process events while waiting for port.conf file

chiiph at torproject.org chiiph at torproject.org
Wed May 30 02:01:55 UTC 2012


commit 2e0987f4d42a192ee2b5222b9db0d373ea8822f5
Author: Tomás Touceda <chiiph at torproject.org>
Date:   Fri May 25 19:05:48 2012 -0300

    Process events while waiting for port.conf file
---
 changes/portconf           |    3 +++
 src/vidalia/MainWindow.cpp |    1 +
 2 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/changes/portconf b/changes/portconf
new file mode 100644
index 0000000..74be88a
--- /dev/null
+++ b/changes/portconf
@@ -0,0 +1,3 @@
+  Internal cleanups and improvements:
+  o Call QCoreApplication::processEvents() while waiting to read
+    port.conf so that Vidalia does not freeze.
\ No newline at end of file
diff --git a/src/vidalia/MainWindow.cpp b/src/vidalia/MainWindow.cpp
index cd4bf27..90e8706 100644
--- a/src/vidalia/MainWindow.cpp
+++ b/src/vidalia/MainWindow.cpp
@@ -779,6 +779,7 @@ MainWindow::connectToTor()
 #else
       sleep(1);
 #endif
+      QCoreApplication::processEvents();
     }
 
     if(tries >= maxtries) {





More information about the tor-commits mailing list