History

fix infinite reloading of missing script files

ZappoMan committed 12 years ago

Commit c0313591 parent 6d1748e1 file · +1 −1Browse files

Showing the changes to interface/src/Application.cpp (1 of 1 file). Show all

Unified · Split

interface/src/Application.cpp+1−1
@@ -3479,7 +3479,6 @@ void Application::cleanupScriptMenuItem(const QString& scriptMenuName) { · 3478 unmodified lines
3479}3479}
3480 3480
3481void Application::loadScript(const QString& fileNameString) {3481void Application::loadScript(const QString& fileNameString) {
3482 _activeScripts.append(fileNameString);
3483 QByteArray fileNameAscii = fileNameString.toLocal8Bit();3482 QByteArray fileNameAscii = fileNameString.toLocal8Bit();
3484 const char* fileName = fileNameAscii.data();3483 const char* fileName = fileNameAscii.data();
3485 3484
@@ -3489,6 +3488,7 @@ void Application::loadScript(const QString& fileNameString) { · 3 unmodified lines
3489 return;3488 return;
3490 }3489 }
3491 qDebug("Loading file %s...", fileName);3490 qDebug("Loading file %s...", fileName);
3491 _activeScripts.append(fileNameString);
3492 3492
3493 // get file length....3493 // get file length....
3494 unsigned long fileLength = file.tellg();3494 unsigned long fileLength = file.tellg();

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t