214 return |
214 return |
215 |
215 |
216 filePath = itm.data(0, SessionManagerDialog.SessionFileRole) |
216 filePath = itm.data(0, SessionManagerDialog.SessionFileRole) |
217 if filePath: |
217 if filePath: |
218 if itm.data(0, SessionManagerDialog.BackupSessionRole): |
218 if itm.data(0, SessionManagerDialog.BackupSessionRole): |
219 res = WebBrowserWindow.sessionManager()\ |
219 res = ( |
220 .replaceSession(filePath) |
220 WebBrowserWindow.sessionManager().replaceSession(filePath) |
|
221 ) |
221 else: |
222 else: |
222 res = WebBrowserWindow.sessionManager()\ |
223 res = ( |
223 .switchToSession(filePath) |
224 WebBrowserWindow.sessionManager().switchToSession(filePath) |
|
225 ) |
224 |
226 |
225 if res: |
227 if res: |
226 self.close() |
228 self.close() |