Commits

Erik Grinaker committed c5822ea

don't crash when unlocking file

  • Participants
  • Parent commits 22f6831

Comments (0)

Files changed (3)

 Revelation changelog
 
+---------------[ xxxx-xx-xx : 0.4.7 ]---------------
+
+2006-01-31  Erik Grinaker <erikg@codepoet.no>
+
+	* don't crash when unlocking file
+
 ---------------[ 2006-01-26 : 0.4.6 ]---------------
 
 2006-01-26  Erik Grinaker <erikg@codepoet.no>
+xxxx-xx-xx: Revelation 0.4.7
+============================
+
+Bugfixes:
+- don't crash when unlocking file
+
+
 2006-01-26: Revelation 0.4.6
 ============================
 

File src/lib/ui.py

 	def get_active(self):
 		"Get the currently active row"
 
+		if self.model == None:
+			return None
+
 		iter = self.model.get_iter(self.get_cursor()[0])
 
 		if iter is None or self.selection.iter_is_selected(iter) == False: