diff -r 1dbf3f4340e0 -r 0e55228e1303 QTfrontend/hwform.cpp --- a/QTfrontend/hwform.cpp Fri Jul 06 13:22:33 2012 +0400 +++ b/QTfrontend/hwform.cpp Fri Jul 06 19:15:44 2012 +0400 @@ -520,6 +520,11 @@ GoToPage(ID_PAGE_SCHEME); } +void HWForm::GoToVideos() +{ + GoToPage(ID_PAGE_VIDEOS); +} + void HWForm::OnPageShown(quint8 id, quint8 lastid) { #ifdef USE_XFIRE @@ -717,6 +722,8 @@ int curid = ui.Pages->currentIndex(); if (curid == ID_PAGE_MAIN) { + if (!ui.pageVideos->tryQuit(this)) + return; stopAnim = true; exit(); }