Commit bc7ec0d4 authored by Nathan Hinton's avatar Nathan Hinton 💬
Browse files

revert changes from another branch that slipped into this one. Whoops

parent 86433879
Pipeline #200026 failed with stage
in 1 minute and 46 seconds
......@@ -4239,22 +4239,12 @@ void MainWindow::slotEditSubtitle(const QMap<QString, QString> &subProperties)
getMainTimeline()->model()->setSubModel(subtitleModel);
pCore->currentDoc()->initializeSubtitles(subtitleModel);
pCore->subtitleWidget()->setModel(subtitleModel);
QString subPath = pCore->currentDoc()->subTitlePath(true);
const QString subPath = pCore->currentDoc()->subTitlePath(true);
const QString workPath = pCore->currentDoc()->subTitlePath(false);
QFile subFile(subPath);
if (subFile.exists()) {
subFile.copy(workPath);
qDebug() << "loading subtitles from: " << workPath;
subtitleModel->parseSubtitle(workPath);
qDebug() << "Checking for more subtitles...";
int i = 0;
//while (subFile.exists()) {
//qDebug() << "Trying to check from: " << subPath.append(std::to_string(i));
//QFile subFile(subPath.append(i));
//ubtitleModel->parseSubtitle(subPath.append(i));
// ++;
//}
}
if (!subProperties.isEmpty()) {
subtitleModel->loadProperties(subProperties);
// Load the disabled / locked state of the subtitle
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment