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.
This commit is contained in:
Mark Liversedge
2012-01-12 16:00:35 +00:00
parent ca9c176e49
commit 64fd91f685

View File

@@ -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