Skip to content

Commit

Permalink
Send Coins page not cleared when changing tabs. Clear all button for …
Browse files Browse the repository at this point in the history
…clearing the entries
  • Loading branch information
Matoking committed Sep 27, 2011
1 parent 010c4fc commit 609acbf
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 3 deletions.
4 changes: 3 additions & 1 deletion src/qt/bitcoingui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,9 @@ void BitcoinGUI::gotoSendCoinsPage()
if(centralWidget->currentWidget() != sendCoinsPage)
{
// Clear the current contents if we arrived from another tab
sendCoinsPage->clear();
// Not necessary especially if the user is jumping between Transactions
// and Send Coins pages. - Matoking
//sendCoinsPage->clear();
}
centralWidget->setCurrentWidget(sendCoinsPage);

Expand Down
24 changes: 22 additions & 2 deletions src/qt/forms/sendcoinsdialog.ui
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<x>0</x>
<y>0</y>
<width>666</width>
<height>162</height>
<height>165</height>
</rect>
</property>
<layout class="QVBoxLayout" name="verticalLayout_2">
Expand Down Expand Up @@ -59,7 +59,7 @@
<item>
<layout class="QHBoxLayout" name="horizontalLayout">
<property name="spacing">
<number>12</number>
<number>6</number>
</property>
<item>
<widget class="QPushButton" name="addButton">
Expand All @@ -75,6 +75,26 @@
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="clearButton">
<property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>Clear all</string>
</property>
<property name="icon">
<iconset resource="../bitcoin.qrc">
<normaloff>:/icons/remove</normaloff>:/icons/remove</iconset>
</property>
<property name="autoRepeatDelay">
<number>300</number>
</property>
</widget>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_2">
<property name="spacing">
Expand Down
1 change: 1 addition & 0 deletions src/qt/sendcoinsdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ SendCoinsDialog::SendCoinsDialog(QWidget *parent) :
addEntry();

connect(ui->addButton, SIGNAL(clicked()), this, SLOT(addEntry()));
connect(ui->clearButton, SIGNAL(clicked()), this, SLOT(clear()));
}

void SendCoinsDialog::setModel(WalletModel *model)
Expand Down

0 comments on commit 609acbf

Please sign in to comment.