Permalink
Browse files

The info dict could be empty.

  • Loading branch information...
1 parent b163417 commit 700442c6bba98a6aa49855e7dd2a38c36d30adb9 @asterix24 asterix24 committed Nov 11, 2014
Showing with 2 additions and 2 deletions.
  1. +1 −1 wizard/BBoardPage.py
  2. +1 −1 wizard/qvariant_converter_old.py
@@ -64,7 +64,7 @@ def isComplete(self):
if self.selected:
preset_path = qvariant_converter.getDict(self.selected.data(Qt.UserRole))
preset_path = qvariant_converter.getStringDict(preset_path["info"])
- preset_path = preset_path["path"]
+ preset_path = preset_path.get("path","")
self.setProjectInfo("PROJECT_BOARD", preset_path)
self.setProjectInfo("PROJECT_FROM_PRESET", True)
self.setProjectInfo("PRESET_LOADED", False)
@@ -102,7 +102,7 @@ def convertBoolDict(dict_str_bool):
def getDict(qvariant):
a = []
- dict_str_str = {}
+ dict_str_bool = {}
if type(qvariant) == dict:
return qvariant

0 comments on commit 700442c

Please sign in to comment.