Skip to content

Commit

Permalink
Fix error when changing root path in some cases
Browse files Browse the repository at this point in the history
Fixes #79
  • Loading branch information
AsgerPetersen committed Jan 23, 2020
1 parent 411c2b0 commit ae25325
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/QlrBrowser/qlrbrowser.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,8 @@ def settingsUpdated(self):
for p in list(self.dockwidget.root_paths):
self.dockwidget.removeRootPath(p)
self.dockwidget.addRootPath(self.settings.value("baseDirectory"))
self.qlrmanager.unload()
if self.qlrmanager:
self.qlrmanager.unload()
self.qlrmanager = QlrManager(self.iface, self.dockwidget)

# --------------------------------------------------------------------------
Expand Down

0 comments on commit ae25325

Please sign in to comment.