controlpanelui/src/cpapplication/src/cpmainwindow.cpp
changeset 33 0cfa53de576f
parent 22 a5692c68d772
child 41 ab0490982943
equal deleted inserted replaced
29:313976a11e23 33:0cfa53de576f
    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)) {