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 a073ae5712
commit f3a5f5b6ca
1 changed files with 3 additions and 2 deletions

View File

@ -887,13 +887,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;
}