Skip to content

Commit

Permalink
Copy VCXYPad presets (v4)
Browse files Browse the repository at this point in the history
  • Loading branch information
hjtappe committed Mar 27, 2024
1 parent 1775f22 commit 93b32fb
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions ui/src/virtualconsole/vcxypad.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,13 @@ VCWidget* VCXYPad::createCopy(VCWidget* parent)
xypad = NULL;
}

for (QHash<QWidget*, VCXYPadPreset*>::iterator it = m_presets.begin();
it != m_presets.end(); ++it)
{
VCXYPadPreset *preset = it.value();
xypad->addPreset(*preset);
}

return xypad;
}

Expand Down

0 comments on commit 93b32fb

Please sign in to comment.