diff options
author | toofar <toofar@spalge.com> | 2023-12-27 11:50:18 +1300 |
---|---|---|
committer | toofar <toofar@spalge.com> | 2024-01-06 21:04:49 +1300 |
commit | c74526549bd7548a6cc29a4725f7de7c9223914f (patch) | |
tree | b4c51fbb2787678a4977360244a1cc5b96f17534 | |
parent | 76ddb89f29a4fb0be953cee7cf8f510f0e81d614 (diff) | |
download | qutebrowser-c74526549bd7548a6cc29a4725f7de7c9223914f.tar.gz qutebrowser-c74526549bd7548a6cc29a4725f7de7c9223914f.zip |
Remove fixme comment about root node with no value
The root node never is associated with a tab.
-rw-r--r-- | qutebrowser/misc/sessions.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/qutebrowser/misc/sessions.py b/qutebrowser/misc/sessions.py index c8445e4ad..b177d07c9 100644 --- a/qutebrowser/misc/sessions.py +++ b/qutebrowser/misc/sessions.py @@ -243,9 +243,6 @@ class SessionManager(QObject): active: Whether the tab is currently active. with_history: Include the tab's history. """ - # FIXME understand why this happens - if tab is None: - return {} data: _JsonType = {'history': []} if active: data['active'] = True @@ -302,7 +299,10 @@ class SessionManager(QObject): for i, node in enumerate(root_node.traverse(), -1): node_data = {} active = i == tabbed_browser.widget.currentIndex() - node_data['tab'] = self._save_tab(node.value, active) + if node == root_node: + node_data['tab'] = {} + else: + node_data['tab'] = self._save_tab(node.value, active) node_data['children'] = [c.uid for c in node.children] node_data['collapsed'] = node.collapsed tree_data[node.uid] = node_data |