add option to copy mon info from another tab [closes #469]

This commit is contained in:
garak
2023-01-16 23:23:41 -05:00
committed by t
parent 06948a97b0
commit 9cc55ef2f7
6 changed files with 62 additions and 18 deletions

View File

@@ -1563,7 +1563,9 @@ void Project::saveTextFile(QString path, QString text) {
QFile file(path);
if (file.open(QIODevice::WriteOnly)) {
file.write(text.toUtf8());
gFileCache[path] = text;
if (gFileCache.contains(path)) {
gFileCache[path] = text;
}
} else {
logError(QString("Could not open '%1' for writing: ").arg(path) + file.errorString());
}