Drag and drop on Family Tree Manager fixes

This commit is contained in:
Doug Blank 2016-05-04 17:28:25 -04:00
parent 5b26bd6c03
commit f83716b6bd
2 changed files with 5 additions and 4 deletions

View File

@ -312,7 +312,7 @@ class CLIDbManager(object):
last, tval, False, "", dbid))
return new_path, title
def _create_new_db(self, title=None, dbid=None):
def _create_new_db(self, title=None, dbid=None, edit_entry=False):
"""
Create a new database, do extra stuff needed
"""
@ -365,12 +365,13 @@ class CLIDbManager(object):
for plugin in pmgr.get_import_plugins():
if format == plugin.get_extension():
new_path, name = self._create_new_db(name)
new_path, name = self._create_new_db(name, edit_entry=False)
# Create a new database
self.__start_cursor(_("Importing data..."))
dbid = config.get('behavior.database-backend')
## Use bsddb, for now, because we assumed that above.
dbid = "bsddb" ## config.get('behavior.database-backend')
dbase = self.dbstate.make_database(dbid)
dbase.load(new_path, user.callback)

View File

@ -986,7 +986,7 @@ class DbManager(CLIDbManager):
"""
Handle the reception of drag data
"""
drag_value = selection.get_data()
drag_value = selection.get_data().decode()
fname = None
type = None
title = None