Skip to content

wizard: fix incorrect variable usage in key image export#276

Open
Oblivionsage wants to merge 1 commit intofeather-wallet:masterfrom
Oblivionsage:fix/export-keyimages-wrong-variable
Open

wizard: fix incorrect variable usage in key image export#276
Oblivionsage wants to merge 1 commit intofeather-wallet:masterfrom
Oblivionsage:fix/export-keyimages-wrong-variable

Conversation

@Oblivionsage
Copy link
Contributor

In PageOTS_ExportKeyImages.cpp, the setupUR() function was exporting key images to a local variable ki_export but then passing the uninitialized m_wizardFields->keyImages to setData(). This resulted in the UR widget displaying empty data.

Changed to export directly to m_wizardFields->keyImages, matching the pattern used in PageOTS_ExportOutputs::setupUR(). This also ensures the data is properly available when exportKeyImages() writes to file.

Fixes TODO at PageOTS_ExportKeyImages.cpp:56

In PageOTS_ExportKeyImages.cpp, the setupUR() function was exporting
key images to a local variable 'ki_export' but then passing the
uninitialized 'm_wizardFields->keyImages' to setData(). This resulted
in the UR widget displaying empty data.

Changed to export directly to m_wizardFields->keyImages, matching the
pattern used in PageOTS_ExportOutputs.cpp::setupUR(). This also ensures
the data is properly available when exportKeyImages() writes to file.

Fixes TODO at PageOTS_ExportKeyImages.cpp:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant