svn: r7368

This commit is contained in:
Don Allingham
2006-10-08 04:17:04 +00:00
parent bec0ca3155
commit 559882d64f
7 changed files with 61 additions and 40 deletions

View File

@ -144,7 +144,17 @@ class RepoEmbedList(EmbeddedList):
self.dbstate, self.uistate, self.track, repo,
ref, self.edit_callback)
except Errors.WindowActiveError:
pass
from QuestionDialog import WarningDialog
WarningDialog(
_("Cannot edit this reference"),
_("This repository reference cannot be edited at this "
"time. Either the associated repository is already "
"being edited or another repository reference that is "
"associated with the same repository is being edited."
"\n\nTo edit this repository reference, you need to "
"close the repository.")
)
def edit_callback(self, name):
self.changed = True