Drag and drop on Family Tree Manager fixes
This commit is contained in:
parent
5b26bd6c03
commit
f83716b6bd
@ -312,7 +312,7 @@ class CLIDbManager(object):
|
|||||||
last, tval, False, "", dbid))
|
last, tval, False, "", dbid))
|
||||||
return new_path, title
|
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
|
Create a new database, do extra stuff needed
|
||||||
"""
|
"""
|
||||||
@ -365,12 +365,13 @@ class CLIDbManager(object):
|
|||||||
for plugin in pmgr.get_import_plugins():
|
for plugin in pmgr.get_import_plugins():
|
||||||
if format == plugin.get_extension():
|
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
|
# Create a new database
|
||||||
self.__start_cursor(_("Importing data..."))
|
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 = self.dbstate.make_database(dbid)
|
||||||
dbase.load(new_path, user.callback)
|
dbase.load(new_path, user.callback)
|
||||||
|
|
||||||
|
@ -986,7 +986,7 @@ class DbManager(CLIDbManager):
|
|||||||
"""
|
"""
|
||||||
Handle the reception of drag data
|
Handle the reception of drag data
|
||||||
"""
|
"""
|
||||||
drag_value = selection.get_data()
|
drag_value = selection.get_data().decode()
|
||||||
fname = None
|
fname = None
|
||||||
type = None
|
type = None
|
||||||
title = None
|
title = None
|
||||||
|
Loading…
Reference in New Issue
Block a user