aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2011-06-05 16:24:23 +0200
committerWladimir J. van der Laan <laanwj@gmail.com>2011-06-05 16:24:23 +0200
commit00b8acdf49894546c2875ad77cf748ec4c920403 (patch)
tree39166ee62b9e3182579269fa70c70603057f2e14
parent9e0576587b91e67aaad3bd4b61571c3fdeeceda7 (diff)
downloadbitcoin-00b8acdf49894546c2875ad77cf748ec4c920403.tar.xz
fix
-rw-r--r--gui/src/bitcoin.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/gui/src/bitcoin.cpp b/gui/src/bitcoin.cpp
index dc3e8070bb..a1b74d8798 100644
--- a/gui/src/bitcoin.cpp
+++ b/gui/src/bitcoin.cpp
@@ -10,7 +10,7 @@
#include <QApplication>
#include <QMessageBox>
-// Need a global reference to process net thread
+// Need a global reference for the notifications to find the GUI
BitcoinGUI *guiref;
int MyMessageBox(const std::string& message, const std::string& caption, int style, wxWindow* parent, int x, int y)
@@ -83,11 +83,10 @@ int main(int argc, char *argv[])
window.setModel(&model);
window.show();
- guiref = 0;
- /* Depending on settings: QApplication::setQuitOnLastWindowClosed(false); */
int retval = app.exec();
+ guiref = 0;
Shutdown(NULL);
return retval;