UI: Fix problem with exporting scene collections/profiles
When exporting scene collections/profiles existing files are not overwritten. Closes jp9000/obs-studio#963
This commit is contained in:
@@ -425,8 +425,12 @@ void OBSBasic::on_actionExportSceneCollection_triggered()
|
||||
|
||||
string file = QT_TO_UTF8(exportFile);
|
||||
|
||||
if (!exportFile.isEmpty() && !exportFile.isNull())
|
||||
if (!exportFile.isEmpty() && !exportFile.isNull()) {
|
||||
if (QFile::exists(exportFile))
|
||||
QFile::remove(exportFile);
|
||||
|
||||
QFile::copy(path + currentFile + ".json", exportFile);
|
||||
}
|
||||
}
|
||||
|
||||
void OBSBasic::ChangeSceneCollection()
|
||||
|
Reference in New Issue
Block a user