diff --git a/src/SaveManager.cpp b/src/SaveManager.cpp index 0d56127..96369ce 100644 --- a/src/SaveManager.cpp +++ b/src/SaveManager.cpp @@ -85,8 +85,8 @@ void SaveManager::save(const QString savepath, Server* manager) { int count = settings.value("General/trackCount").toInt(); for(int i = 0; i < count; ++ i) { - settings.setValue(QString("Track%1/volume").arg(i), manager->player->getTrack(i)->getVolume()); - settings.setValue(QString("Track%1/pan").arg(i), manager->player->getTrack(i)->getPan()); + settings.setValue(QString("Track%1/volume").arg(i), manager->m_player->getTrack(i)->getVolume()); + settings.setValue(QString("Track%1/pan").arg(i), manager->m_player->getTrack(i)->getPan()); } settings.sync(); diff --git a/src/Track.cpp b/src/Track.cpp index f44b84a..4ea2e25 100644 --- a/src/Track.cpp +++ b/src/Track.cpp @@ -11,8 +11,8 @@ Track::Track(): {} Track::Track(const TrackData& data, Parameters conf, QSettings* opt, int id): - m_id(id), m_file(data.file), m_name(data.name), m_options(opt), - m_soloState(false), m_activatedState(false) + m_id(id), m_file(data.file), m_name(data.name), + m_soloState(false), m_activatedState(false), m_options(opt) { m_volumePtr = std::make_shared>(conf); m_panPtr = std::make_shared>(conf); diff --git a/src/main.cpp b/src/main.cpp index fbd2295..0b51dd1 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -18,6 +18,7 @@ struct QuitStruct{ } static void exitApp(int sig){ + qDebug() << "Exit with signal " << sig; QCoreApplication::exit(0); } };