From 7f2abaa01baf25cb40a881cf6698ad9cec79dd20 Mon Sep 17 00:00:00 2001 From: Sean Rhea Date: Sun, 14 Mar 2010 10:11:41 -0400 Subject: [PATCH] fix uninitialized 'ride' variable in ModelWindow --- src/ModelWindow.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ModelWindow.cpp b/src/ModelWindow.cpp index f0c679e14..09101ef9c 100644 --- a/src/ModelWindow.cpp +++ b/src/ModelWindow.cpp @@ -46,7 +46,8 @@ ModelWindow::addStandardChannels(QComboBox *box) //box->addItem(tr("Longitude"), MODEL_LONG); //XXX weird values make the plot ugly } -ModelWindow::ModelWindow(MainWindow *parent, const QDir &home) : QWidget(parent), home(home), main(parent), active(false) +ModelWindow::ModelWindow(MainWindow *parent, const QDir &home) : + QWidget(parent), home(home), main(parent), active(false), ride(NULL) { // Layouts QVBoxLayout *mainLayout = new QVBoxLayout;