mirror of
https://github.com/huderlem/porymap.git
synced 2026-10-04 05:46:39 -05:00
add option to copy mon info from another tab [closes #469]
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user