QML UI: quit on back key while showing dive list

Make sure you save first, though.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2016-04-15 14:42:08 -07:00
parent 71d74f9e3c
commit ecf44bb2fa
3 changed files with 13 additions and 0 deletions

View file

@ -1198,3 +1198,10 @@ void QMLManager::screenChanged(QScreen *screen)
m_lastDevicePixelRatio = screen->devicePixelRatio();
emit sendScreenChanged(screen);
}
void QMLManager::quit()
{
if (unsaved_changes())
saveChangesCloud(false);
QApplication::quit();
}