Skip to content

Commit

Permalink
RMG: make cheatsTreeWidget's expandable items read-only
Browse files Browse the repository at this point in the history
  • Loading branch information
Rosalie241 committed Feb 1, 2025
1 parent aa32706 commit 701d1f9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Source/RMG/UserInterface/Dialog/Cheats/CheatsCommon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,7 @@ QString CheatsCommon::GetCheatTreeWidgetItemName(bool netplay, QJsonArray& json,

bool CheatsCommon::AddCheatsToTreeWidget(bool netplay, QJsonArray& json, const std::vector<CoreCheat>& cheats, QTreeWidget* cheatsTreeWidget, bool readonly)
{
cheatsTreeWidget->setItemsExpandable(!readonly);
cheatsTreeWidget->clear();

for (const CoreCheat& cheat : cheats)
Expand Down

0 comments on commit 701d1f9

Please sign in to comment.