Am 22.10.2010 um 15:28 schrieb Stephan Witt:

> Am 22.10.2010 um 02:11 schrieb Pavel Sanda:
> 
>> Stephan Witt wrote:
>> 
>>> @@ -212,8 +213,9 @@
>>>     docstring text = bformat(_("Reverting to the stored version of the "
>>>                             "document %1$s will lose all current 
>>> changes.\n\n"
>>>                             "Do you want to revert to the older version?"), 
>>> file);
>>> -   int const ret = Alert::prompt(_("Revert to stored version of 
>>> document?"),
>>> -           text, 0, 1, _("&Revert"), _("&Cancel"));
>>> +   bool const doask = vcs->revertWithConfirmation();
>> 
>> i would need to check whats above this function in guiview but isn't 
>> possible that we will skip
>> reverting in case the document is edited but not saved?
> 
> Yes, so it is. Then reverting should be guarded with revertEnabled() too?

The simpler solution would be to check owner_->isClean() in 
CVS::revertWithConfirmation()...

Stephan

Reply via email to