Synchronize the selection in the main view and the pattern list view.