Don't attempt to save if no data was read
This commit is contained in:
parent
981ca7d18e
commit
af94b9f212
@ -70,6 +70,8 @@ class LineConfigParser:
|
|||||||
|
|
||||||
def save(self):
|
def save(self):
|
||||||
"""Save the config file."""
|
"""Save the config file."""
|
||||||
|
if self.data is None:
|
||||||
|
return
|
||||||
import qutebrowser.config.config as config
|
import qutebrowser.config.config as config
|
||||||
limit = -1 if self._limit is None else config.config.get(*self._limit)
|
limit = -1 if self._limit is None else config.config.get(*self._limit)
|
||||||
if limit == 0:
|
if limit == 0:
|
||||||
|
Loading…
Reference in New Issue
Block a user