Return the path of the selected version.
"""
current = self.currentItem()
- return qvariant_converter.getString(current.data(Qt.UserRole))
+ if current:
+ return qvariant_converter.getString(current.data(Qt.UserRole))
+ else:
+ return None
def isDefaultVersion(self, version):
"""
import winreg_importer
if version in winreg_importer.getBertosDirs():
return True
- return False
\ No newline at end of file
+ return False
+