diff --git a/sleepyhead/Graphs/gLineChart.h b/sleepyhead/Graphs/gLineChart.h index 4895bda1..92849e13 100644 --- a/sleepyhead/Graphs/gLineChart.h +++ b/sleepyhead/Graphs/gLineChart.h @@ -139,8 +139,8 @@ class gLineChart: public Layer layer->m_report_empty = m_report_empty; layer->m_square_plot = m_square_plot; layer->m_disable_accel = m_disable_accel; - layer->subtract_offset = layer->subtract_offset; - layer->m_codes = layer->m_codes; + layer->subtract_offset = subtract_offset; + layer->m_codes = m_codes; layer->m_threshold = m_threshold; layer->m_square = m_square; layer->m_enabled = m_enabled; diff --git a/sleepyhead/SleepLib/loader_plugins/icon_loader.cpp b/sleepyhead/SleepLib/loader_plugins/icon_loader.cpp index b6b8dee1..2487cca8 100644 --- a/sleepyhead/SleepLib/loader_plugins/icon_loader.cpp +++ b/sleepyhead/SleepLib/loader_plugins/icon_loader.cpp @@ -134,7 +134,7 @@ int FPIconLoader::Open(QString path) if (m) { c+=OpenMachine(m, npath); } - } catch (OneTypePerDay e) { + } catch (OneTypePerDay& e) { Q_UNUSED(e) p_profile->DelMachine(m); MachList.erase(MachList.find(info.serial)); diff --git a/sleepyhead/SleepLib/profiles.cpp b/sleepyhead/SleepLib/profiles.cpp index d37457aa..5e037052 100644 --- a/sleepyhead/SleepLib/profiles.cpp +++ b/sleepyhead/SleepLib/profiles.cpp @@ -581,7 +581,7 @@ void Profile::LoadMachineData() } else { try { m->Load(); - } catch (OldDBVersion e) { + } catch (OldDBVersion& e) { Q_UNUSED(e) DataFormatError(m); } diff --git a/sleepyhead/mainwindow.cpp b/sleepyhead/mainwindow.cpp index 5d958f22..4a1bd824 100644 --- a/sleepyhead/mainwindow.cpp +++ b/sleepyhead/mainwindow.cpp @@ -490,8 +490,8 @@ void loadChannels() void MainWindow::on_aboutToQuit() { Notify(QObject::tr("Don't forget to place your datacard back in your CPAP machine"), QObject::tr("SleepyHead Reminder")); - QThread::msleep(1000); QApplication::processEvents(); + QThread::msleep(1000); } void MainWindow::closeEvent(QCloseEvent * event)