Skip to content

Commit b57701d

Browse files
Merge pull request #24 from adeptio-project/storADEchecker
Disable Privacy Window
2 parents fad178e + cfcd328 commit b57701d

File tree

3 files changed

+18
-16
lines changed

3 files changed

+18
-16
lines changed

src/activemasternode.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,11 +130,11 @@ void CActiveMasternode::ManageStatus()
130130
}
131131
}
132132

133-
workTime = GetAdjustedTime() - startTime;
134-
notCheckedTime = GetAdjustedTime() - lastCheck;
133+
int64_t workTime = GetAdjustedTime() - startTime;
134+
int64_t notCheckedTime = GetAdjustedTime() - lastCheck;
135135

136136
if (workTime >= MASTERNODE_STORADE_START_SECONDS) {
137-
137+
138138
if(notCheckedTime >= MASTERNODE_STORADE_CHECK_SECONDS) {
139139

140140
if(!StoradeIsEnabled()){

src/qt/bitcoingui.cpp

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// Copyright (c) 2011-2014 The Bitcoin developers
22
// Copyright (c) 2014-2015 The Dash developers
3-
// Copyright (c) 2015-2017 The PIVX developers// Copyright (c) 2017-2019 The Adeptio developers
3+
// Copyright (c) 2015-2017 The PIVX developers
4+
// Copyright (c) 2017-2019 The Adeptio developers
45
// Distributed under the MIT/X11 software license, see the accompanying
56
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
67

@@ -93,7 +94,7 @@ BitcoinGUI::BitcoinGUI(const NetworkStyle* networkStyle, QWidget* parent) : QMai
9394
multisigSignAction(0),
9495
aboutAction(0),
9596
receiveCoinsAction(0),
96-
privacyAction(0),
97+
//privacyAction(0),
9798
optionsAction(0),
9899
toggleHideAction(0),
99100
encryptWalletAction(0),
@@ -360,7 +361,7 @@ void BitcoinGUI::createActions(const NetworkStyle* networkStyle)
360361
#else
361362
privacyAction->setShortcut(QKeySequence(Qt::ALT + Qt::Key_5));
362363
#endif
363-
tabGroup->addAction(privacyAction);
364+
//tabGroup->addAction(privacyAction);
364365

365366
#ifdef ENABLE_WALLET
366367

@@ -388,8 +389,8 @@ void BitcoinGUI::createActions(const NetworkStyle* networkStyle)
388389
connect(sendCoinsAction, SIGNAL(triggered()), this, SLOT(gotoSendCoinsPage()));
389390
connect(receiveCoinsAction, SIGNAL(triggered()), this, SLOT(showNormalIfMinimized()));
390391
connect(receiveCoinsAction, SIGNAL(triggered()), this, SLOT(gotoReceiveCoinsPage()));
391-
connect(privacyAction, SIGNAL(triggered()), this, SLOT(showNormalIfMinimized()));
392-
connect(privacyAction, SIGNAL(triggered()), this, SLOT(gotoPrivacyPage()));
392+
//connect(privacyAction, SIGNAL(triggered()), this, SLOT(showNormalIfMinimized()));
393+
//connect(privacyAction, SIGNAL(triggered()), this, SLOT(gotoPrivacyPage()));
393394
connect(historyAction, SIGNAL(triggered()), this, SLOT(showNormalIfMinimized()));
394395
connect(historyAction, SIGNAL(triggered()), this, SLOT(gotoHistoryPage()));
395396
#endif // ENABLE_WALLET
@@ -574,9 +575,9 @@ void BitcoinGUI::createToolBars()
574575
toolbar->addAction(overviewAction);
575576
toolbar->addAction(sendCoinsAction);
576577
toolbar->addAction(receiveCoinsAction);
577-
toolbar->addAction(privacyAction);
578+
//toolbar->addAction(privacyAction);
578579
toolbar->addAction(historyAction);
579-
toolbar->addAction(privacyAction);
580+
//toolbar->addAction(privacyAction);
580581
QSettings settings;
581582
if (settings.value("fShowMasternodesTab").toBool()) {
582583
toolbar->addAction(masternodeAction);
@@ -679,7 +680,7 @@ void BitcoinGUI::setWalletActionsEnabled(bool enabled)
679680
overviewAction->setEnabled(enabled);
680681
sendCoinsAction->setEnabled(enabled);
681682
receiveCoinsAction->setEnabled(enabled);
682-
privacyAction->setEnabled(enabled);
683+
//privacyAction->setEnabled(enabled);
683684
historyAction->setEnabled(enabled);
684685
QSettings settings;
685686
if (settings.value("fShowMasternodesTab").toBool()) {
@@ -736,7 +737,7 @@ void BitcoinGUI::createTrayIconMenu()
736737
trayIconMenu->addSeparator();
737738
trayIconMenu->addAction(sendCoinsAction);
738739
trayIconMenu->addAction(receiveCoinsAction);
739-
trayIconMenu->addAction(privacyAction);
740+
//trayIconMenu->addAction(privacyAction);
740741
trayIconMenu->addSeparator();
741742
trayIconMenu->addAction(signMessageAction);
742743
trayIconMenu->addAction(verifyMessageAction);

src/qt/walletview.cpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// Copyright (c) 2011-2015 The Bitcoin developers
2-
// Copyright (c) 2015-2017 The PIVX developers// Copyright (c) 2017-2019 The Adeptio developers
2+
// Copyright (c) 2015-2017 The PIVX developers
3+
// Copyright (c) 2017-2019 The Adeptio developers
34
// Distributed under the MIT software license, see the accompanying
45
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
56

@@ -121,7 +122,7 @@ WalletView::WalletView(QWidget* parent) : QStackedWidget(parent),
121122

122123
addWidget(overviewPage);
123124
addWidget(transactionsPage);
124-
addWidget(privacyPage);
125+
//addWidget(privacyPage);
125126
addWidget(receiveCoinsPage);
126127
addWidget(sendCoinsPage);
127128
addWidget(explorerWindow);
@@ -195,7 +196,7 @@ void WalletView::setWalletModel(WalletModel* walletModel)
195196
if (settings.value("fShowMasternodesTab").toBool()) {
196197
masternodeListPage->setWalletModel(walletModel);
197198
}
198-
privacyPage->setModel(walletModel);
199+
//privacyPage->setModel(walletModel);
199200
receiveCoinsPage->setModel(walletModel);
200201
sendCoinsPage->setModel(walletModel);
201202

@@ -337,7 +338,7 @@ bool WalletView::handlePaymentRequest(const SendCoinsRecipient& recipient)
337338
void WalletView::showOutOfSyncWarning(bool fShow)
338339
{
339340
overviewPage->showOutOfSyncWarning(fShow);
340-
privacyPage->showOutOfSyncWarning(fShow);
341+
//privacyPage->showOutOfSyncWarning(fShow);
341342
}
342343

343344
void WalletView::updateEncryptionStatus()

0 commit comments

Comments
 (0)