equal
deleted
inserted
replaced
28 { |
28 { |
29 } |
29 } |
30 |
30 |
31 CpMainWindow::~CpMainWindow() |
31 CpMainWindow::~CpMainWindow() |
32 { |
32 { |
33 |
33 CpMainView *mainView = qobject_cast<CpMainView *>(views().first()); |
|
34 if(mainView) |
|
35 { |
|
36 mainView->saveActivity(); |
|
37 } |
34 } |
38 } |
35 |
39 |
36 bool CpMainWindow::event(QEvent *e) |
40 bool CpMainWindow::event(QEvent *e) |
37 { |
41 { |
38 if (e->type() == (QEvent::Type)(CpCreatePluginItemDataEvent::CreatePluginItemData)) { |
42 if (e->type() == (QEvent::Type)(CpCreatePluginItemDataEvent::CreatePluginItemData)) { |