Move deviceSelector init startup -> appframe

- Plus some minor static analysis fixes and missing atomic store() for
MSVC
This commit is contained in:
Charles J. Cliffe
2015-10-05 19:59:17 -04:00
parent 0df2439658
commit dff879f233
3 changed files with 6 additions and 8 deletions
+1 -4
View File
@@ -102,9 +102,6 @@ bool CubicSDR::OnInit() {
sdrEnum = new SDREnumerator();
appframe = new AppFrame();
deviceSelectorOpen.store(true);
deviceSelectorDialog = new SDRDevicesDialog(appframe);
deviceSelectorDialog->Show();
t_SDREnum = new std::thread(&SDREnumerator::threadMain, sdrEnum);
@@ -199,7 +196,7 @@ void CubicSDR::deviceSelector() {
deviceSelectorDialog->SetFocus();
return;
}
deviceSelectorOpen = true;
deviceSelectorOpen.store(true);
deviceSelectorDialog = new SDRDevicesDialog(appframe);
deviceSelectorDialog->Show();
}