Fix regression that wipe content when app is sent to background
This commit is contained in:
parent
6ab4838fdf
commit
70ccdb11b2
2 changed files with 4 additions and 3 deletions
|
@ -29,6 +29,8 @@ int main(int argc, char *argv[])
|
||||||
|
|
||||||
QCoreApplication::setApplicationName(QStringLiteral("Papocchio"));
|
QCoreApplication::setApplicationName(QStringLiteral("Papocchio"));
|
||||||
|
|
||||||
|
view->setSource(SailfishApp::pathTo("qml/Papocchio.qml"));
|
||||||
|
|
||||||
// Otherwise the Canvas is cleaned when the application is not
|
// Otherwise the Canvas is cleaned when the application is not
|
||||||
// marked as active. See for more:
|
// marked as active. See for more:
|
||||||
// https://lists.sailfishos.org/pipermail/devel/2014-October/005065.html
|
// 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->rootContext()->setContextProperty("papocchioDir", papocchioDir());
|
||||||
|
|
||||||
view->setSource(SailfishApp::pathTo("qml/Papocchio.qml"));
|
|
||||||
view->show();
|
view->show();
|
||||||
|
|
||||||
return app->exec();
|
return app->exec();
|
||||||
|
|
|
@ -12,12 +12,12 @@
|
||||||
<context>
|
<context>
|
||||||
<name>MainPage</name>
|
<name>MainPage</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../qml/pages/MainPage.qml" line="98"/>
|
<location filename="../qml/pages/MainPage.qml" line="96"/>
|
||||||
<source>Saving the canvas...</source>
|
<source>Saving the canvas...</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../qml/pages/MainPage.qml" line="114"/>
|
<location filename="../qml/pages/MainPage.qml" line="112"/>
|
||||||
<source>Clearing the canvas...</source>
|
<source>Clearing the canvas...</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
|
|
Loading…
Reference in a new issue