From dabbbd2a5226f30890d44fe25f5a309a606346d5 Mon Sep 17 00:00:00 2001 From: Mark Watkins Date: Thu, 8 Dec 2011 23:33:29 +1000 Subject: [PATCH] Fix preferences crash and restart issue on windows --- preferencesdialog.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/preferencesdialog.cpp b/preferencesdialog.cpp index d9d2ed1a..e6c9dce7 100644 --- a/preferencesdialog.cpp +++ b/preferencesdialog.cpp @@ -440,7 +440,7 @@ void PreferencesDialog::Save() file.close(); } - profile->Save(); + PROFILE.Save(); PREF.Save(); if (needs_restart) { @@ -636,7 +636,7 @@ void PreferencesDialog::resetGraphModel() ui->graphView->setAlternatingRowColors(true); - ui->graphView->setFirstColumnSpanned(0,daily->index(),true); + // ui->graphView->setFirstColumnSpanned(0,daily->index(),true); // Crashes on windows.. Why do I need this again? graphModel->setColumnCount(3); QStringList headers; headers.append("Graph");