Commits

Erik Grinaker committed 5e73d77

fixed some bugs introduced in recent changes

  • Participants
  • Parent commits 98840ff

Comments (0)

Files changed (4)

 		self.set_file(source.file, source.password, source.filepassword)
 
 
-	def set_file(self, file, password, filepassword = None):
+	def set_file(self, file, password = None, filepassword = None):
 		"Sets the current file for the data"
 
 		self.password = password
 		else:
 			entrystore = self.handler.import_data(data)
 
+		entrystore.set_file(self.file, self.password)
+
 		return entrystore
 
 

src/lib/widget.py

 		c = gconf.client_get_default()
 		c.notify_add("/apps/revelation/view/passwords", self.__cb_gconf_password)
 
-		if c.get_bool("/apps/revelation/view/passwords") == gtk.FALSE:
+		if c.get_bool("/apps/revelation/view/passwords") == gtk.TRUE:
+			self.show_password()
+
+		else:
 			self.hide_password()
 
 
 		"Shows the password"
 
 		self.set_text(self.password)
-		self.set_selectable(gtk.FALSE)
+		self.set_selectable(gtk.TRUE)
 
 
 		self.tree.select(None)
 		self.dataview.display_info()
+		self.data.set_file(None)
 
 		self.if_menu.get_widget("<main>/Edit/Find Next").set_sensitive(gtk.FALSE)
 		self.if_menu.get_widget("<main>/Edit/Find Previous").set_sensitive(gtk.FALSE)