Commits

Erik Grinaker  committed de53973

fixed drag and drop undo/redo crashes

  • Participants
  • Parent commits e1e69f9

Comments (0)

Files changed (3)

 
 ---------------[ xxxx-xx-xx : 0.4.6 ]---------------
 
+2006-01-19  Erik Grinaker <erikg@codepoet.no>
+
+	* fixed drag and drop undo/redo crashes
+
 2006-01-18  Erik Grinaker <erikg@codepoet.no>
 
 	* updated the copyright period
 - new applet option to show/hide search entry
 
 Bugfixes:
+- fixed drag and drop undo/redo crashes
 - don't initialize python modules during configure checks
 - changed button "Edit" to "Update" in edit entry dialog
 - use full path when starting Revelation from applet
-- use correct key path for applet show_passwords gconf key
+- use correct key path for applet show_passwords gconf schema key
 - remove GNOME_RevelationApplet.server during make clean
 
 2005-08-25: Revelation 0.4.5

File src/revelation.in

 			prepath, postpath = list(prepath), list(postpath)
 
 			# adjust path if necessary
-			if prepath[:-1] == postpath[:-1]:
-				if prepath[-1] <= postpath[len(prepath) - 1]:
-					postpath[len(prepath) - 1] += 1
+			if len(prepath) <= len(postpath):
+				if prepath[:-1] == postpath[:len(prepath) - 1]:
+					if prepath[-1] <= postpath[len(prepath) - 1]:
+						postpath[len(prepath) - 1] += 1
 
 			newiter = self.entrystore.move_entry(
 				self.entrystore.get_iter(prepath),
 			prepath, postpath = list(prepath), list(postpath)
 
 			# adjust path if necessary
-			if postpath[:-1] == prepath[:len(postpath) - 1]:
-				if postpath[-1] <= prepath[len(postpath) - 1]:
-					prepath[len(postpath) - 1] += 1
+			if len(postpath) <= len(prepath):
+				if postpath[:-1] == prepath[:len(postpath) - 1]:
+					if postpath[-1] <= prepath[len(postpath) - 1]:
+						prepath[len(postpath) - 1] += 1
 
 			newiter = self.entrystore.move_entry(
 				self.entrystore.get_iter(postpath),