Fixed and working with MSVC 32-bit

This commit is contained in:
Charles J. Cliffe 2015-10-10 01:13:48 -04:00
parent b8cb4f9c9f
commit 2b08c5d248
4 changed files with 11 additions and 3 deletions

1
.gitignore vendored
View File

@ -1,3 +1,4 @@
build/
cmake_build/
cmake_build_msvc/
dist/

View File

@ -802,9 +802,11 @@ void AppFrame::OnIdle(wxIdleEvent& event) {
if (!demodTuner->HasFocus()) {
demodTuner->SetFocus();
}
} else if (!waterfallCanvas->HasFocus()) {
} else if (!wxGetApp().isDeviceSelectorOpen()) {
if (!waterfallCanvas->HasFocus()) {
waterfallCanvas->SetFocus();
}
}
scopeCanvas->setPPMMode(demodTuner->isAltDown());

View File

@ -101,9 +101,9 @@ bool CubicSDR::OnInit() {
// t_SDR = new std::thread(&SDRThread::threadMain, sdrThread);
sdrEnum = new SDREnumerator();
t_SDREnum = new std::thread(&SDREnumerator::threadMain, sdrEnum);
appframe = new AppFrame();
t_SDREnum = new std::thread(&SDREnumerator::threadMain, sdrEnum);
//#ifdef __APPLE__
// int main_policy;
@ -499,3 +499,7 @@ std::string CubicSDR::getNotification() {
void CubicSDR::setDeviceSelectorClosed() {
deviceSelectorOpen.store(false);
}
bool CubicSDR::isDeviceSelectorOpen() {
return deviceSelectorOpen.load();
}

View File

@ -100,6 +100,7 @@ public:
void removeRemote(std::string remoteAddr);
void setDeviceSelectorClosed();
bool isDeviceSelectorOpen();
private:
AppFrame *appframe;