mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2025-11-11 11:08:02 -06:00
Merge pull request #267 from gv5470/patch-100
Fix wxWidgets assertion failed when backing up/restoring volume heade…
This commit is contained in:
@@ -219,7 +219,7 @@ namespace VeraCrypt
|
|||||||
|
|
||||||
wxSingleChoiceDialog choiceDialog (parent, LangString["DOES_VOLUME_CONTAIN_HIDDEN"], Application::GetName(), choices);
|
wxSingleChoiceDialog choiceDialog (parent, LangString["DOES_VOLUME_CONTAIN_HIDDEN"], Application::GetName(), choices);
|
||||||
choiceDialog.SetSize (wxSize (Gui->GetCharWidth (&choiceDialog) * 60, -1));
|
choiceDialog.SetSize (wxSize (Gui->GetCharWidth (&choiceDialog) * 60, -1));
|
||||||
choiceDialog.SetSelection (-1);
|
choiceDialog.SetSelection (0);
|
||||||
|
|
||||||
if (choiceDialog.ShowModal() != wxID_OK)
|
if (choiceDialog.ShowModal() != wxID_OK)
|
||||||
return;
|
return;
|
||||||
@@ -1324,7 +1324,7 @@ namespace VeraCrypt
|
|||||||
|
|
||||||
wxSingleChoiceDialog choiceDialog (parent, LangString["HEADER_RESTORE_EXTERNAL_INTERNAL"], Application::GetName(), choices);
|
wxSingleChoiceDialog choiceDialog (parent, LangString["HEADER_RESTORE_EXTERNAL_INTERNAL"], Application::GetName(), choices);
|
||||||
choiceDialog.SetSize (wxSize (Gui->GetCharWidth (&choiceDialog) * 80, -1));
|
choiceDialog.SetSize (wxSize (Gui->GetCharWidth (&choiceDialog) * 80, -1));
|
||||||
choiceDialog.SetSelection (-1);
|
choiceDialog.SetSelection (0);
|
||||||
|
|
||||||
if (choiceDialog.ShowModal() != wxID_OK)
|
if (choiceDialog.ShowModal() != wxID_OK)
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user