Fix regression that wipe content when app is sent to background

This commit is contained in:
Andrea Scarpino 2015-09-12 19:06:21 +02:00
parent 6ab4838fdf
commit 70ccdb11b2
2 changed files with 4 additions and 3 deletions

View file

@ -29,6 +29,8 @@ int main(int argc, char *argv[])
QCoreApplication::setApplicationName(QStringLiteral("Papocchio"));
view->setSource(SailfishApp::pathTo("qml/Papocchio.qml"));
// Otherwise the Canvas is cleaned when the application is not
// marked as active. See for more:
// https://lists.sailfishos.org/pipermail/devel/2014-October/005065.html
@ -37,7 +39,6 @@ int main(int argc, char *argv[])
view->rootContext()->setContextProperty("papocchioDir", papocchioDir());
view->setSource(SailfishApp::pathTo("qml/Papocchio.qml"));
view->show();
return app->exec();

View file

@ -12,12 +12,12 @@
<context>
<name>MainPage</name>
<message>
<location filename="../qml/pages/MainPage.qml" line="98"/>
<location filename="../qml/pages/MainPage.qml" line="96"/>
<source>Saving the canvas...</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qml/pages/MainPage.qml" line="114"/>
<location filename="../qml/pages/MainPage.qml" line="112"/>
<source>Clearing the canvas...</source>
<translation type="unfinished"></translation>
</message>