Skip to content


Fix from Salvatore to fix project macros
Browse files Browse the repository at this point in the history
  • 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/
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 == '':

# create a new empty python module
Expand Down

0 comments on commit ba4e438

Please sign in to comment.