Fixed place editing

svn: r1146
This commit is contained in:
Don Allingham
2002-10-21 01:18:07 +00:00
parent 2b3241bc19
commit aedf532a43
13 changed files with 128 additions and 91 deletions

View File

@@ -53,6 +53,7 @@ import Marriage
import EditPlace
import EditSource
from QuestionDialog import ErrorDialog
from intl import gettext as _
_IMAGEX = 140
@@ -137,7 +138,7 @@ class ImageSelect:
description = self.description.get_text()
if os.path.exists(filename) == 0:
gnome.ui.GnomeErrorDialog(_("That is not a valid file name."));
ErrorDialog(_("That is not a valid file name."));
return
already_imported = None
@@ -325,7 +326,7 @@ class Gallery(ImageSelect):
except IOError, msg:
t = _("Could not import %s") % d
gnome.ui.GnomeErrorDialog("%s\n%s %d" % (t,msg[0],msg[1]))
ErrorDialog("%s\n%s %d" % (t,msg[0],msg[1]))
return
mime = Utils.get_mime_type(tfile)
photo = Photo()