Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix from Salvatore to fix project macros
  • Loading branch information
timlinux authored and slarosa committed Sep 11, 2013
1 parent 95d6a23 commit ba4e438
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/utils.py
Expand Up @@ -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
Expand Down

0 comments on commit ba4e438

Please sign in to comment.