Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F13115614
D8363.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Subscribers
None
D8363.diff
View Options
diff --git a/src/qt/walletframe.h b/src/qt/walletframe.h
--- a/src/qt/walletframe.h
+++ b/src/qt/walletframe.h
@@ -37,8 +37,8 @@
void setClientModel(ClientModel *clientModel);
bool addWallet(WalletModel *walletModel);
- bool setCurrentWallet(WalletModel *wallet_model);
- bool removeWallet(WalletModel *wallet_model);
+ void setCurrentWallet(WalletModel *wallet_model);
+ void removeWallet(WalletModel *wallet_model);
void removeAllWallets();
bool handlePaymentRequest(const SendCoinsRecipient &recipient);
diff --git a/src/qt/walletframe.cpp b/src/qt/walletframe.cpp
--- a/src/qt/walletframe.cpp
+++ b/src/qt/walletframe.cpp
@@ -63,27 +63,25 @@
return true;
}
-bool WalletFrame::setCurrentWallet(WalletModel *wallet_model) {
+void WalletFrame::setCurrentWallet(WalletModel *wallet_model) {
if (mapWalletViews.count(wallet_model) == 0) {
- return false;
+ return;
}
WalletView *walletView = mapWalletViews.value(wallet_model);
walletStack->setCurrentWidget(walletView);
assert(walletView);
walletView->updateEncryptionStatus();
- return true;
}
-bool WalletFrame::removeWallet(WalletModel *wallet_model) {
+void WalletFrame::removeWallet(WalletModel *wallet_model) {
if (mapWalletViews.count(wallet_model) == 0) {
- return false;
+ return;
}
WalletView *walletView = mapWalletViews.take(wallet_model);
walletStack->removeWidget(walletView);
delete walletView;
- return true;
}
void WalletFrame::removeAllWallets() {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Mar 1, 11:33 (6 h, 31 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5187630
Default Alt Text
D8363.diff (1 KB)
Attached To
D8363: gui: Drop unused return values in WalletFrame
Event Timeline
Log In to Comment