I am thinking of here:
void MainWindow::SplitOnSGFSectionMarkers()
Right after it does this:
Code:
// Check if data is well formed before splitting.
if (!html_resource->FileIsWellFormed()) {
QMessageBox::warning(this, tr("Sigil"), tr("Cannot split: %1 XML is not well formed").arg(html_resource->Filename()));
return;
}
So it would only get invoked when a person intentionally tries to split a file but before the file is actually physically split.
KevinH