kevacoin/gui/src/bitcoin.cpp

42 lines
847 B
C++
Raw Normal View History

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"
#include "clientmodel.h"
2011-05-22 12:54:13 +00:00
#include "util.h"
#include "init.h"
2011-05-07 20:13:39 +00:00
#include <QApplication>
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
app.setQuitOnLastWindowClosed(false);
2011-05-07 20:13:39 +00:00
try {
if(AppInit2(argc, argv))
{
ClientModel model;
BitcoinGUI window;
window.setModel(&model);
2011-05-22 12:54:13 +00:00
window.show();
2011-05-07 20:13:39 +00:00
/* Depending on settings: QApplication::setQuitOnLastWindowClosed(false); */
int retval = app.exec();
2011-05-07 20:13:39 +00:00
Shutdown(NULL);
2011-05-12 18:16:42 +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
}