diff -r 3f8a995f6e49 -r 5cfe8e02a9c4 RefactoringRope/Refactoring.py --- a/RefactoringRope/Refactoring.py Sat Dec 31 13:51:04 2016 +0100 +++ b/RefactoringRope/Refactoring.py Wed Mar 08 19:21:22 2017 +0100 @@ -1991,8 +1991,13 @@ return if location is not None: - e5App().getObject("ViewManager").openSourceFile( - location.resource.real_path, location.lineno, next=True) + try: + e5App().getObject("ViewManager").openSourceFile( + location.resource.real_path, location.lineno, addNext=True) + except TypeError: + # backward compatibility; < 17.03 + e5App().getObject("ViewManager").openSourceFile( + location.resource.real_path, location.lineno, next=True) else: e5App().getObject("UserInterface").statusBar().showMessage( self.tr('No definition found'), 5000)