Merge branch 'develop' of bitbucket.org:k1jt/wsjtx into develop

This commit is contained in:
Joe Taylor 2023-06-23 12:58:17 -04:00
commit 60dbba359b
2 changed files with 8 additions and 13 deletions

View File

@ -1335,8 +1335,8 @@ FrequencyList_v2_101::FrequencyItems FrequencyList_v2_101::from_json_file(QFile
{ {
throw ReadFileException{tr ("No Frequencies were found")}; throw ReadFileException{tr ("No Frequencies were found")};
} }
int valid_entry_count = 0; int valid_entry_count [[maybe_unused]] = 0;
int skipped_entry_count = 0; int skipped_entry_count [[maybe_unused]] = 0;
for (auto const &item: arr) for (auto const &item: arr)
{ {
QString mode_s, region_s; QString mode_s, region_s;

View File

@ -470,17 +470,12 @@ MainWindow::MainWindow(QDir const& temp_directory, bool multiple,
m_optimizingProgress.setMinimumDuration (15000); // only show after 15s delay m_optimizingProgress.setMinimumDuration (15000); // only show after 15s delay
//Attach or create a memory segment to be shared with QMAP. //Attach or create a memory segment to be shared with QMAP.
int memSize=4096; int memSize=4096;
if(!mem_qmap.attach()) { if(!mem_qmap.attach()) mem_qmap.create(memSize);
if(!mem_qmap.create(memSize)) { ipc_qmap = (int*)mem_qmap.data();
MessageBox::information_message (this, mem_qmap.lock();
"Unable to create shared memory segment mem_qmap."); memset(ipc_qmap,0,memSize); //Zero all of QMAP shared memory
} mem_qmap.unlock();
}
ipc_qmap = (int*)mem_qmap.data();
mem_qmap.lock();
memset(ipc_qmap,0,memSize); //Zero all of QMAP shared memory
mem_qmap.unlock();
// Closedown. // Closedown.
connect (ui->actionExit, &QAction::triggered, this, &QMainWindow::close); connect (ui->actionExit, &QAction::triggered, this, &QMainWindow::close);