1
0
mirror of https://github.com/adobe/brackets.git synced 2024-11-20 18:02:54 +01:00

Fix QuickOpen Bug where an Error occur on dismissing the Modal when no Document is opene (#14698)

This commit is contained in:
Shubham Yadav 2019-04-12 21:38:36 +05:30 committed by GitHub
parent 228ac28067
commit 379a26b649
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -367,10 +367,10 @@ define(function (require, exports, module) {
// completes) since ModalBar has already resized the editor and done its own scroll adjustment before
// this event fired - so anything we set here will override the pos that was (re)set by ModalBar.
var editor = EditorManager.getCurrentFullEditor();
if (this._origSelections) {
if (editor && this._origSelections) {
editor.setSelections(this._origSelections);
}
if (this._origScrollPos) {
if (editor && this._origScrollPos) {
editor.setScrollPos(this._origScrollPos.x, this._origScrollPos.y);
}
}