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
34793479 }
34803480
34813481 void Application::loadScript(const QString& fileNameString) {
3482− _activeScripts.append(fileNameString);
34833482 QByteArray fileNameAscii = fileNameString.toLocal8Bit();
34843483 const char* fileName = fileNameAscii.data();
34853484
@@ -3489,6 +3488,7 @@ void Application::loadScript(const QString& fileNameString) { · 3 unmodified lines
34893488 return;
34903489 }
34913490 qDebug("Loading file %s...", fileName);
3491+ _activeScripts.append(fileNameString);
34923492
34933493 // get file length....
34943494 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