windows build fixes
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
// file license.txt or http://www.opensource.org/licenses/mit-license.php.
|
||||
#include "headers.h"
|
||||
#include "db.h"
|
||||
#include "rpc.h"
|
||||
#include "bitcoinrpc.h"
|
||||
#include "net.h"
|
||||
#include "init.h"
|
||||
#include "strlcpy.h"
|
||||
|
||||
@@ -113,21 +113,23 @@ int main(int argc, char *argv[])
|
||||
{
|
||||
if(AppInit2(argc, argv))
|
||||
{
|
||||
BitcoinGUI window;
|
||||
ClientModel clientModel(pwalletMain);
|
||||
WalletModel walletModel(pwalletMain);
|
||||
guiref = &window;
|
||||
window.setClientModel(&clientModel);
|
||||
window.setWalletModel(&walletModel);
|
||||
{
|
||||
// Put this in a block, so that BitcoinGUI is cleaned up properly before
|
||||
// calling shutdown.
|
||||
BitcoinGUI window;
|
||||
ClientModel clientModel(pwalletMain);
|
||||
WalletModel walletModel(pwalletMain);
|
||||
guiref = &window;
|
||||
window.setClientModel(&clientModel);
|
||||
window.setWalletModel(&walletModel);
|
||||
|
||||
window.show();
|
||||
window.show();
|
||||
|
||||
int retval = app.exec();
|
||||
app.exec();
|
||||
|
||||
guiref = 0;
|
||||
guiref = 0;
|
||||
}
|
||||
Shutdown(NULL);
|
||||
|
||||
return retval;
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -138,4 +140,5 @@ int main(int argc, char *argv[])
|
||||
} catch (...) {
|
||||
PrintException(NULL, "Runaway exception");
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -100,19 +100,6 @@
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="horizontalLayout">
|
||||
<item>
|
||||
<spacer name="horizontalSpacer">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>40</width>
|
||||
<height>20</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QPushButton" name="newAddressButton">
|
||||
<property name="toolTip">
|
||||
@@ -155,6 +142,19 @@
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<spacer name="horizontalSpacer">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>40</width>
|
||||
<height>20</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QDialogButtonBox" name="buttonBox">
|
||||
<property name="sizePolicy">
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
#include "guiutil.h"
|
||||
#include "bitcoinaddressvalidator.h"
|
||||
#include "util.h"
|
||||
|
||||
#include "headers.h"
|
||||
|
||||
#include <QString>
|
||||
#include <QDateTime>
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
#include <transactiondesc.h>
|
||||
|
||||
#include "guiutil.h"
|
||||
#include "main.h"
|
||||
|
||||
#include "headers.h"
|
||||
#include "qtui.h"
|
||||
|
||||
#include <QString>
|
||||
|
||||
Reference in New Issue
Block a user