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