Skip to content
Permalink
Browse files

Fix from Salvatore to fix project macros

  • Loading branch information
timlinux committed Sep 10, 2013
1 parent 09ac74a commit f738351735ccbac28a5b1365e6bfe5ddfb210266
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 f738351

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