Increased max width of amount field to prevent number overflow bug.
[novacoin.git] / src / qt / bitcoinamountfield.cpp
index 19cd565..7248cf7 100644 (file)
@@ -21,7 +21,8 @@ BitcoinAmountField::BitcoinAmountField(QWidget *parent):
     amount->setLocale(QLocale::c());
     amount->setDecimals(8);
     amount->installEventFilter(this);
-    amount->setMaximumWidth(170);
+    amount->setMaximumWidth(240);
+    amount->setSingleStep(0.001);
 
     QHBoxLayout *layout = new QHBoxLayout(this);
     layout->addWidget(amount);