End the batch if the Paste Over dialog is cancelled rather than horribly breaking everything

Originally committed to SVN as r6596.
This commit is contained in:
Thomas Goyne 2012-03-25 04:04:42 +00:00
parent ddc70bcd9c
commit ae5d6edaed

View file

@ -259,6 +259,7 @@ void SubtitlesGrid::PasteLines(int n,bool pasteOver) {
DialogPasteOver diag(context->parent);
if (diag.ShowModal()) {
delete curdiag;
EndBatch();
return;
}
pasteOverOptions = OPT_GET("Tool/Paste Lines Over/Fields")->GetListBool();