--- a/eric6/WebBrowser/Session/SessionManagerDialog.py Wed Sep 25 18:48:22 2019 +0200 +++ b/eric6/WebBrowser/Session/SessionManagerDialog.py Wed Sep 25 18:52:40 2019 +0200 @@ -216,11 +216,13 @@ filePath = itm.data(0, SessionManagerDialog.SessionFileRole) if filePath: if itm.data(0, SessionManagerDialog.BackupSessionRole): - res = WebBrowserWindow.sessionManager()\ - .replaceSession(filePath) + res = ( + WebBrowserWindow.sessionManager().replaceSession(filePath) + ) else: - res = WebBrowserWindow.sessionManager()\ - .switchToSession(filePath) + res = ( + WebBrowserWindow.sessionManager().switchToSession(filePath) + ) if res: self.close()