From 3576a1824dabe7381f27ced853604d7276ea8ee7 Mon Sep 17 00:00:00 2001
From: KamFretoZ <14798312+kamfretoz@users.noreply.github.com>
Date: Mon, 22 Jan 2024 22:58:35 +0700
Subject: [PATCH] Qt: Remove the duplicate memcard button
---
pcsx2-qt/Settings/MemoryCardSettingsWidget.cpp | 12 ------------
pcsx2-qt/Settings/MemoryCardSettingsWidget.h | 1 -
pcsx2-qt/Settings/MemoryCardSettingsWidget.ui | 7 -------
3 files changed, 20 deletions(-)
diff --git a/pcsx2-qt/Settings/MemoryCardSettingsWidget.cpp b/pcsx2-qt/Settings/MemoryCardSettingsWidget.cpp
index 344018c20b..3ad899125b 100644
--- a/pcsx2-qt/Settings/MemoryCardSettingsWidget.cpp
+++ b/pcsx2-qt/Settings/MemoryCardSettingsWidget.cpp
@@ -54,7 +54,6 @@ MemoryCardSettingsWidget::MemoryCardSettingsWidget(SettingsWindow* dialog, QWidg
connect(m_ui.refreshCard, &QPushButton::clicked, this, &MemoryCardSettingsWidget::refresh);
connect(m_ui.createCard, &QPushButton::clicked, this, &MemoryCardSettingsWidget::createCard);
- connect(m_ui.duplicateCard, &QPushButton::clicked, this, &MemoryCardSettingsWidget::duplicateCard);
connect(m_ui.renameCard, &QPushButton::clicked, this, &MemoryCardSettingsWidget::renameCard);
connect(m_ui.convertCard, &QPushButton::clicked, this, &MemoryCardSettingsWidget::convertCard);
connect(m_ui.deleteCard, &QPushButton::clicked, this, &MemoryCardSettingsWidget::deleteCard);
@@ -193,20 +192,10 @@ void MemoryCardSettingsWidget::updateCardActions()
bool isPS1 = (cardInfo.has_value() ? cardInfo.value().file_type == MemoryCardFileType::PS1 : false);
m_ui.convertCard->setEnabled(hasSelection && !isPS1);
- m_ui.duplicateCard->setEnabled(hasSelection);
m_ui.renameCard->setEnabled(hasSelection);
m_ui.deleteCard->setEnabled(hasSelection);
}
-void MemoryCardSettingsWidget::duplicateCard()
-{
- const QString selectedCard(getSelectedCard());
- if (selectedCard.isEmpty())
- return;
-
- QMessageBox::critical(this, tr("Error"), tr("Not yet implemented."));
-}
-
void MemoryCardSettingsWidget::deleteCard()
{
const QString selectedCard(getSelectedCard());
@@ -294,7 +283,6 @@ void MemoryCardSettingsWidget::listContextMenuRequested(const QPoint& pos)
}
menu.addSeparator();
- connect(menu.addAction(tr("Duplicate")), &QAction::triggered, this, &MemoryCardSettingsWidget::duplicateCard);
connect(menu.addAction(tr("Rename")), &QAction::triggered, this, &MemoryCardSettingsWidget::renameCard);
connect(menu.addAction(tr("Convert")), &QAction::triggered, this, &MemoryCardSettingsWidget::convertCard);
connect(menu.addAction(tr("Delete")), &QAction::triggered, this, &MemoryCardSettingsWidget::deleteCard);
diff --git a/pcsx2-qt/Settings/MemoryCardSettingsWidget.h b/pcsx2-qt/Settings/MemoryCardSettingsWidget.h
index 9d3d8b7e7c..f3f5942cf0 100644
--- a/pcsx2-qt/Settings/MemoryCardSettingsWidget.h
+++ b/pcsx2-qt/Settings/MemoryCardSettingsWidget.h
@@ -98,7 +98,6 @@ private:
QString getSelectedCard() const;
void updateCardActions();
- void duplicateCard();
void deleteCard();
void renameCard();
void convertCard();
diff --git a/pcsx2-qt/Settings/MemoryCardSettingsWidget.ui b/pcsx2-qt/Settings/MemoryCardSettingsWidget.ui
index a712211575..6779816021 100644
--- a/pcsx2-qt/Settings/MemoryCardSettingsWidget.ui
+++ b/pcsx2-qt/Settings/MemoryCardSettingsWidget.ui
@@ -146,13 +146,6 @@
- -
-
-
- Duplicate
-
-
-
-