--- a/RefactoringRope/Refactoring.py Sun Mar 22 18:58:46 2015 +0100 +++ b/RefactoringRope/Refactoring.py Tue Apr 07 21:41:40 2015 +0200 @@ -888,10 +888,11 @@ """ aw = e5App().getObject("ViewManager").activeWindow() resource = None - if aw is not None: + if aw is not None and self.__project is not None: filename = aw.getFileName() - resource = rope.base.libutils.path_to_resource( - self.__project, filename) + if filename is not None: + resource = rope.base.libutils.path_to_resource( + self.__project, filename) self.refactoringUndoHistoryAct.setEnabled(self.__canUndo()) self.refactoringUndoFileHistoryAct.setEnabled(