mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-13 16:18:42 +00:00
Fix crash on --no-python
.. if there is a python chart in the view, it will crash as setWeb does not check to see if embedding worked, and is called via the property system so must always check.
This commit is contained in:
@@ -418,6 +418,9 @@ PythonChart::PythonChart(Context *context, bool ridesummary) : GcChartWindow(con
|
||||
void
|
||||
PythonChart::setWeb(bool x)
|
||||
{
|
||||
// check python was loaded
|
||||
if (python == NULL || python->loaded == false) return;
|
||||
|
||||
// toggle the use of a web chart or a qt chart for rendering the data
|
||||
if (x && canvas==NULL) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user