From d8cd7faf4f8be3cbd48a181d643a27dfec89ec2c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Michal=20Mal=C3=BD?= Date: Wed, 12 Mar 2014 13:02:14 +0100 Subject: [PATCH] Do nothing when user wants to save user data with no runs loaded --- datamanager.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/datamanager.cpp b/datamanager.cpp index 9f4b1bc..0428d7c 100644 --- a/datamanager.cpp +++ b/datamanager.cpp @@ -570,11 +570,12 @@ void DataManager::onLoadSingleRun(const QString& str) void DataManager::onSaveChanges() { - std::shared_ptr sr = m_activeSequence->selectedRun(); + std::shared_ptr sr; if (m_activeSequence == nullptr) return; + sr = m_activeSequence->selectedRun(); sr->saveUserDataToJSON(); } -- 2.43.5