Without the fix cancellation of save data does not work
How to reproduce:
1. Start PV with demo device and generate sufficient data, e.g. demo device 1GSa/s, 10MSa
2. Save data (should take at least 30s) and try to cancel saving
3. PV continues saving data and dialog reappears after next progress update
this, SLOT(on_progress_updated()));
connect(&session_, SIGNAL(store_successful()),
&session, SLOT(on_data_saved()));
+ connect(this, SIGNAL(canceled()), this, SLOT(on_cancel()));
// Since we're not setting any progress in case of an error, the dialog
// will pop up after the minimumDuration time has been reached - 4000 ms
}
}
+void StoreProgress::on_cancel()
+{
+ session_.cancel();
+}
+
} // namespace dialogs
} // namespace pv
private Q_SLOTS:
void on_progress_updated();
+ void on_cancel();
private:
pv::StoreSession session_;