6224: Can't select with ot without media when taking backup

svn: r20793
This commit is contained in:
Benny Malengier 2012-12-18 16:22:26 +00:00
parent f39e82c9b3
commit eb52e2f3de
2 changed files with 4 additions and 4 deletions

View File

@ -278,7 +278,7 @@ class ConfigureDialog(ManagedWindow):
config=None):
if not config:
config = self.__config
radiobox = Gtk.RadioButton(group,label)
radiobox = Gtk.RadioButton.new_with_mnemonic_from_widget(group, label)
if config.get(constant) == True:
radiobox.set_active(True)
radiobox.connect('toggled', self.update_radiobox, constant)

View File

@ -1562,7 +1562,7 @@ class ViewManager(CLIManager):
hbox.pack_start(label, False, True, 0)
include = Gtk.RadioButton(None, "%s (%s %s)" % (_("Include"),
mbytes, _("Megabyte|MB")))
exclude = Gtk.RadioButton(include, _("Exclude"))
exclude = Gtk.RadioButton.new_with_mnemonic_from_widget(include, _("Exclude"))
include.connect("toggled", lambda widget: self.media_toggle(widget, file_entry))
hbox.pack_start(include, False, True, 0)
hbox.pack_end(exclude, False, True, 0)
@ -1591,13 +1591,13 @@ class ViewManager(CLIManager):
self.uistate.progress.show()
self.uistate.push_message(self.dbstate, _("Making backup..."))
if include.get_active():
from exportpkg import PackageWriter
from gramps.plugins.export.exportpkg import PackageWriter
writer = PackageWriter(self.dbstate.db, filename,
User(error=ErrorDialog,
callback=self.pulse_progressbar))
writer.export()
else:
from exportxml import XmlWriter
from gramps.plugins.export.exportxml import XmlWriter
writer = XmlWriter(self.dbstate.db,
User(error=ErrorDialog,
callback=self.pulse_progressbar),