Erik Grinaker avatar Erik Grinaker committed de53973

fixed drag and drop undo/redo crashes

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

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),
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.