From 546a53e6f2d5bb53f6905ed32dbedd4517f22eba Mon Sep 17 00:00:00 2001 From: Paul Franklin Date: Tue, 17 Jun 2014 17:24:10 -0700 Subject: [PATCH] slight MissingMediaDialog improvement --- gramps/gui/glade/dialog.glade | 1 + gramps/plugins/tool/check.py | 17 +++++++++++------ 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/gramps/gui/glade/dialog.glade b/gramps/gui/glade/dialog.glade index fc1536bba..2810736b4 100644 --- a/gramps/gui/glade/dialog.glade +++ b/gramps/gui/glade/dialog.glade @@ -253,6 +253,7 @@ False + 600 dialog diff --git a/gramps/plugins/tool/check.py b/gramps/plugins/tool/check.py index fddb58753..cb14ecb56 100644 --- a/gramps/plugins/tool/check.py +++ b/gramps/plugins/tool/check.py @@ -717,12 +717,17 @@ class CheckIntegrity(object): 'found' % {'desc' : photo_desc, 'name' : photo_name}) - mmd = MissingMediaDialog(_("Media object could not be found"), - _("The file:\n %(file_name)s \nis referenced in the database, but no longer exists. " - "The file may have been deleted or moved to a different location. " - "You may choose to either remove the reference from the database, " - "keep the reference to the missing file, or select a new file." - ) % {'file_name' : '%s' % photo_name}, + mmd = MissingMediaDialog( + _("Media object could not be found"), + _("The file:\n%(file_name)s\nis referenced in " + "the database, but no longer exists.\n" + "The file may have been deleted or moved to " + "a different location.\n" + "You may choose to either remove the " + "reference from the database,\n" + "keep the reference to the missing file, " + "or select a new file." + ) % {'file_name' : '%s' % photo_name}, remove_clicked, leave_clicked, select_clicked) missmedia_action = mmd.default_action elif missmedia_action == 1: