Skip to content
Permalink
Browse files

Fix from Salvatore to fix project macros

  • Loading branch information
timlinux authored and slarosa committed Sep 11, 2013
1 parent 95d6a23 commit ba4e438c05d70005186c35ff72ff45d482a08c86
Showing with 1 addition and 1 deletion.
  1. +1 −1 python/utils.py
@@ -342,7 +342,7 @@ def reloadProjectMacros():

from qgis.core import QgsProject
code, ok = QgsProject.instance().readEntry("Macros", "/pythonCode")
if not ok or code.isEmpty():
if not ok or not code or code == '':
return

# create a new empty python module

0 comments on commit ba4e438

Please sign in to comment.
You can’t perform that action at this time.