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):
|
||||
"""Save the config file."""
|
||||
if self.data is None:
|
||||
return
|
||||
import qutebrowser.config.config as config
|
||||
limit = -1 if self._limit is None else config.config.get(*self._limit)
|
||||
if limit == 0:
|
||||
|
Loading…
Reference in New Issue
Block a user