History

move firstRun.set() to correct place

Brad Hefta-Gaub committed 10 years ago

Commit 65aae421 parent 85272a81 file · +4 −5Browse files

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

Unified · Split

interface/src/Application.cpp+4−5
@@ -1071,6 +1071,10 @@ Application::Application(int& argc, char** argv, QElapsedTimer& startupTimer) : · 1070 unmodified lines
10711071 // in the queue, which can be pretty damn frequent. Hence the idle function has a bunch
10721072 // of logic to abort early if it's being called too often.
10731073 _idleTimer->start(0);
1074+
1075+ // After all of the constructor is completed, then set firstRun to false.
1076+ Setting::Handle<bool> firstRun{ Settings::firstRun, true };
1077+ firstRun.set(false);
10741078 }
10751079
10761080
@@ -1088,11 +1092,6 @@ void Application::checkChangeCursor() { · 11 unmodified lines
10881092
10891093 _cursorNeedsChanging = false;
10901094 }
1091−
1092−
1093− // After all of the constructor is completed, then set firstRun to false.
1094− Setting::Handle<bool> firstRun{ Settings::firstRun, true };
1095− firstRun.set(false);
10961095 }
10971096
10981097 void Application::showCursor(const QCursor& cursor) {

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