2011-05-07 20:13:39 +00:00
|
|
|
/*
|
|
|
|
* W.J. van der Laan 2011
|
|
|
|
*/
|
2011-05-12 12:49:42 +00:00
|
|
|
#include "bitcoingui.h"
|
2011-05-22 15:19:43 +00:00
|
|
|
#include "clientmodel.h"
|
2011-05-22 12:54:13 +00:00
|
|
|
#include "util.h"
|
2011-05-22 15:19:43 +00:00
|
|
|
#include "init.h"
|
2011-05-07 20:13:39 +00:00
|
|
|
|
|
|
|
#include <QApplication>
|
|
|
|
|
|
|
|
int main(int argc, char *argv[])
|
|
|
|
{
|
|
|
|
QApplication app(argc, argv);
|
2011-06-05 12:19:57 +00:00
|
|
|
app.setQuitOnLastWindowClosed(false);
|
2011-05-07 20:13:39 +00:00
|
|
|
|
2011-05-22 15:19:43 +00:00
|
|
|
try {
|
|
|
|
if(AppInit2(argc, argv))
|
|
|
|
{
|
|
|
|
ClientModel model;
|
|
|
|
BitcoinGUI window;
|
|
|
|
window.setModel(&model);
|
2011-05-22 12:54:13 +00:00
|
|
|
|
2011-05-22 15:19:43 +00:00
|
|
|
window.show();
|
2011-05-07 20:13:39 +00:00
|
|
|
|
2011-05-22 15:19:43 +00:00
|
|
|
/* Depending on settings: QApplication::setQuitOnLastWindowClosed(false); */
|
|
|
|
int retval = app.exec();
|
2011-05-07 20:13:39 +00:00
|
|
|
|
2011-05-22 15:19:43 +00:00
|
|
|
Shutdown(NULL);
|
2011-05-12 18:16:42 +00:00
|
|
|
|
2011-05-22 15:19:43 +00:00
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
} catch (std::exception& e) {
|
|
|
|
PrintException(&e, "Runaway exception");
|
|
|
|
} catch (...) {
|
|
|
|
PrintException(NULL, "Runaway exception");
|
|
|
|
}
|
2011-05-07 20:13:39 +00:00
|
|
|
}
|