Skip to content

Commit

Permalink
Merge pull request #1540 from hjtappe/vcxypad-copy-presets
Browse files Browse the repository at this point in the history
Copy VCXYPad presets (v4)
  • Loading branch information
mcallegari committed Mar 28, 2024
2 parents 1775f22 + 93b32fb commit 068ac52
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 068ac52

Please sign in to comment.