From 64fd91f685cd24cd1c12019181683ab2c7e0fc01 Mon Sep 17 00:00:00 2001 From: Mark Liversedge Date: Thu, 12 Jan 2012 16:00:35 +0000 Subject: [PATCH] Reinstate Chart Setup Dialog It was removed when we had a serious bug that caused a crash when adding a chart. That turned out to be related to mouse event processing and drop shadow graphic effects. We can remove this is folks don't like it. --- src/HomeWindow.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/HomeWindow.cpp b/src/HomeWindow.cpp index ca327f7f9..2c6205dce 100644 --- a/src/HomeWindow.cpp +++ b/src/HomeWindow.cpp @@ -420,6 +420,7 @@ HomeWindow::dragEnterEvent(QDragEnterEvent *event) void HomeWindow::appendChart(GcWinID id) { +#if 0 GcWindow *newone = GcWindowRegistry::newGcWindow(id, mainWindow); for(int i=0; GcWindows[i].relevance; i++) { if (GcWindows[i].id == id) { @@ -435,9 +436,9 @@ HomeWindow::appendChart(GcWinID id) newone->show(); newone->setProperty("ride", property("ride")); resizeEvent(NULL); -#if 0 +#else // GcWindowDialog is delete on close, so no need to delete - GcWindowDialog *f = new GcWindowDialog(GcWindows[i].id, mainWindow); + GcWindowDialog *f = new GcWindowDialog(id, mainWindow); GcWindow *newone = f->exec(); // returns null if cancelled or closed