From 364e6a13414891eb277f1d65a1986e0dbce2300e Mon Sep 17 00:00:00 2001 From: Silent Date: Sun, 22 May 2022 23:13:26 +0200 Subject: [PATCH] GameList: Mark search directory cells as read-only --- pcsx2-qt/Settings/GameListSettingsWidget.cpp | 1 + pcsx2-qt/Settings/GameListSettingsWidget.h | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/pcsx2-qt/Settings/GameListSettingsWidget.cpp b/pcsx2-qt/Settings/GameListSettingsWidget.cpp index a0de8dd250..29632a4d51 100644 --- a/pcsx2-qt/Settings/GameListSettingsWidget.cpp +++ b/pcsx2-qt/Settings/GameListSettingsWidget.cpp @@ -96,6 +96,7 @@ void GameListSettingsWidget::addPathToTable(const std::string& path, bool recurs QTableWidgetItem* item = new QTableWidgetItem(); item->setText(QString::fromStdString(path)); + item->setFlags(item->flags() & ~(Qt::ItemIsEditable)); m_ui.searchDirectoryList->setItem(row, 0, item); QCheckBox* cb = new QCheckBox(m_ui.searchDirectoryList); diff --git a/pcsx2-qt/Settings/GameListSettingsWidget.h b/pcsx2-qt/Settings/GameListSettingsWidget.h index 70deb80cd2..b5854d8564 100644 --- a/pcsx2-qt/Settings/GameListSettingsWidget.h +++ b/pcsx2-qt/Settings/GameListSettingsWidget.h @@ -21,8 +21,6 @@ class SettingsDialog; -class GameListSearchDirectoriesModel; - class GameListSettingsWidget : public QWidget { Q_OBJECT