From 6a5e662f85f5f17f53471751446e3718d672ec3b Mon Sep 17 00:00:00 2001 From: tobtoht Date: Sat, 22 May 2021 21:09:22 +0200 Subject: [PATCH] AccountSwitcherDialog: remove useless code --- src/dialog/AccountSwitcherDialog.cpp | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/dialog/AccountSwitcherDialog.cpp b/src/dialog/AccountSwitcherDialog.cpp index dfa66db..33f1ae4 100644 --- a/src/dialog/AccountSwitcherDialog.cpp +++ b/src/dialog/AccountSwitcherDialog.cpp @@ -30,12 +30,6 @@ AccountSwitcherDialog::AccountSwitcherDialog(QSharedPointer ctx, QWi connect(ui->accounts->selectionModel(), &QItemSelectionModel::currentChanged, this, &AccountSwitcherDialog::switchAccount); connect(ui->accounts, &QTreeView::customContextMenuRequested, this, &AccountSwitcherDialog::showContextMenu); - connect(ui->accounts, &QTreeView::doubleClicked, [this](QModelIndex index){ - if (!m_model) return; - if (!(m_model->flags(index) & Qt::ItemIsEditable)) { - this->switchAccount(); - } - }); connect(ui->btn_newAccount, &QPushButton::clicked, [this]{ m_ctx->wallet->addSubaddressAccount("New account"); @@ -89,7 +83,6 @@ void AccountSwitcherDialog::showContextMenu(const QPoint &point) { auto *menu = new QMenu(ui->accounts); - menu->addAction("Switch to account", this, &AccountSwitcherDialog::switchAccount); menu->addAction("Copy label", this, &AccountSwitcherDialog::copyLabel); menu->addAction("Copy balance", this, &AccountSwitcherDialog::copyBalance); menu->addAction("Edit label", this, &AccountSwitcherDialog::editLabel);