mirror of
https://github.com/lubosz/overte.git
synced 2025-08-07 17:41:12 +02:00
Merge pull request #2201 from ZappoMan/bugfixes
fix infinite reloading of missing script files
This commit is contained in:
commit
868e6ba738
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