mirror of
https://github.com/adobe/brackets.git
synced 2024-11-20 09:53:00 +01:00
Fix QuickOpen Bug where an Error occur on dismissing the Modal when no Document is opene (#14698)
This commit is contained in:
parent
228ac28067
commit
379a26b649
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user