mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-09 18:18:02 +02:00
fix infinite reloading of missing script files
This commit is contained in:
parent
6d1748e5b9
commit
c031359a54
1 changed files with 1 additions and 1 deletions
|
@ -3479,7 +3479,6 @@ void Application::cleanupScriptMenuItem(const QString& scriptMenuName) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void Application::loadScript(const QString& fileNameString) {
|
void Application::loadScript(const QString& fileNameString) {
|
||||||
_activeScripts.append(fileNameString);
|
|
||||||
QByteArray fileNameAscii = fileNameString.toLocal8Bit();
|
QByteArray fileNameAscii = fileNameString.toLocal8Bit();
|
||||||
const char* fileName = fileNameAscii.data();
|
const char* fileName = fileNameAscii.data();
|
||||||
|
|
||||||
|
@ -3489,6 +3488,7 @@ void Application::loadScript(const QString& fileNameString) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
qDebug("Loading file %s...", fileName);
|
qDebug("Loading file %s...", fileName);
|
||||||
|
_activeScripts.append(fileNameString);
|
||||||
|
|
||||||
// get file length....
|
// get file length....
|
||||||
unsigned long fileLength = file.tellg();
|
unsigned long fileLength = file.tellg();
|
||||||
|
|
Loading…
Reference in a new issue