[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

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



commit 2e0987f4d42a192ee2b5222b9db0d373ea8822f5
Author: Tomás Touceda <chiiph@xxxxxxxxxxxxxx>
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) {



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits