Merge branch 'master' of git://github.com/bitcoin/bitcoin into prefsFix
Signed-off-by: Jonas Schnelli <jonas.schnelli@include7.ch> Conflicts: bitcoin-qt.pro
This commit is contained in:
@@ -17,7 +17,9 @@
|
||||
#include "splashscreen.h"
|
||||
|
||||
#include <QMessageBox>
|
||||
#if QT_VERSION < 0x050000
|
||||
#include <QTextCodec>
|
||||
#endif
|
||||
#include <QLocale>
|
||||
#include <QTimer>
|
||||
#include <QTranslator>
|
||||
@@ -69,7 +71,7 @@ static bool ThreadSafeAskFee(int64 nFeeRequired)
|
||||
{
|
||||
if(!guiref)
|
||||
return false;
|
||||
if(nFeeRequired < MIN_TX_FEE || nFeeRequired <= nTransactionFee || fDaemon)
|
||||
if(nFeeRequired < CTransaction::nMinTxFee || nFeeRequired <= nTransactionFee || fDaemon)
|
||||
return true;
|
||||
|
||||
bool payFee = false;
|
||||
@@ -114,9 +116,11 @@ int main(int argc, char *argv[])
|
||||
// Command-line options take precedence:
|
||||
ParseParameters(argc, argv);
|
||||
|
||||
#if QT_VERSION < 0x050000
|
||||
// Internal string conversion is all UTF-8
|
||||
QTextCodec::setCodecForTr(QTextCodec::codecForName("UTF-8"));
|
||||
QTextCodec::setCodecForCStrings(QTextCodec::codecForTr());
|
||||
#endif
|
||||
|
||||
Q_INIT_RESOURCE(bitcoin);
|
||||
QApplication app(argc, argv);
|
||||
@@ -148,7 +152,7 @@ int main(int argc, char *argv[])
|
||||
// as it is used to locate QSettings)
|
||||
QApplication::setOrganizationName("Bitcoin");
|
||||
QApplication::setOrganizationDomain("bitcoin.org");
|
||||
if(GetBoolArg("-testnet")) // Separate UI settings for testnet
|
||||
if (GetBoolArg("-testnet", false)) // Separate UI settings for testnet
|
||||
QApplication::setApplicationName("Bitcoin-Qt-testnet");
|
||||
else
|
||||
QApplication::setApplicationName("Bitcoin-Qt");
|
||||
@@ -199,7 +203,7 @@ int main(int argc, char *argv[])
|
||||
}
|
||||
|
||||
SplashScreen splash(QPixmap(), 0);
|
||||
if (GetBoolArg("-splash", true) && !GetBoolArg("-min"))
|
||||
if (GetBoolArg("-splash", true) && !GetBoolArg("-min", false))
|
||||
{
|
||||
splash.show();
|
||||
splash.setAutoFillBackground(true);
|
||||
@@ -220,7 +224,7 @@ int main(int argc, char *argv[])
|
||||
|
||||
boost::thread_group threadGroup;
|
||||
|
||||
BitcoinGUI window;
|
||||
BitcoinGUI window(GetBoolArg("-testnet", false), 0);
|
||||
guiref = &window;
|
||||
|
||||
QTimer* pollShutdownTimer = new QTimer(guiref);
|
||||
@@ -246,7 +250,7 @@ int main(int argc, char *argv[])
|
||||
window.setCurrentWallet("~Default");
|
||||
|
||||
// If -min option passed, start window minimized.
|
||||
if(GetBoolArg("-min"))
|
||||
if(GetBoolArg("-min", false))
|
||||
{
|
||||
window.showMinimized();
|
||||
}
|
||||
@@ -274,6 +278,9 @@ int main(int argc, char *argv[])
|
||||
}
|
||||
else
|
||||
{
|
||||
threadGroup.interrupt_all();
|
||||
threadGroup.join_all();
|
||||
Shutdown();
|
||||
return 1;
|
||||
}
|
||||
} catch (std::exception& e) {
|
||||
|
||||
Reference in New Issue
Block a user