Don't resync the screen before we've changed it back.

Fixes: lp:4382
* https://bugs.launchpad.net/kicad/+bug/4382
This commit is contained in:
Jeff Young 2020-05-09 20:02:54 +01:00
parent 37b723d8ae
commit 52139cf0c4
1 changed files with 3 additions and 2 deletions

View File

@ -820,13 +820,14 @@ bool DIALOG_FIELDS_EDITOR_GLOBAL::TransferDataFromWindow()
SCH_SHEET_PATH currentSheet = m_parent->GetCurrentSheet();
m_dataModel->ApplyData();
m_parent->SyncView();
m_parent->OnModify();
// Reset the view to where we left the user
m_parent->SetCurrentSheet( currentSheet );
m_parent->SyncView();
m_parent->Refresh();
m_parent->OnModify();
return true;
}