blob: c843cc406e101a7919d8bc851b10dff2192d962c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
/*
* W.J. van der Laan 2011
*/
#include "bitcoingui.h"
#include "clientmodel.h"
#include "util.h"
#include "init.h"
#include <QApplication>
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
try {
if(AppInit2(argc, argv))
{
ClientModel model;
BitcoinGUI window;
window.setModel(&model);
window.show();
/* Depending on settings: QApplication::setQuitOnLastWindowClosed(false); */
int retval = app.exec();
Shutdown(NULL);
return retval;
}
else
{
return 1;
}
} catch (std::exception& e) {
PrintException(&e, "Runaway exception");
} catch (...) {
PrintException(NULL, "Runaway exception");
}
}
|