Explorar o código

Fix handler rename

Steven Silvester %!s(int64=9) %!d(string=hai) anos
pai
achega
bae0a368ce
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/docmanager/handler.ts

+ 1 - 1
src/docmanager/handler.ts

@@ -171,7 +171,7 @@ abstract class AbstractFileHandler<T extends Widget> implements IMessageFilter {
     for (let w of this._widgets) {
       let model = this._getModel(w);
       if (model.path === oldPath) {
-        this._setModel(w, model);
+        model.path = newPath;
         w.title.text = this.getTitleText(model);
         return true;
       }