[SailfishDevel] A welcome dialog and pageStack's operation in progress.

Marcin M. marmistrzmar at gmail.com
Wed Jul 16 08:58:42 UTC 2014


I'd like to open a welcome dialog at startup which can be disabled by a
user.

Page
{
    id: mainPage
    function openWelcomeDialog()
    {
        var component = Qt.createComponent("WelcomeDialog.qml")
        var popup = component.createObject(mainPage)
        popup.open()
    }

    Component.onCompleted: openWelcomeDialog()
    // ...
}

In fact

[W] unknown:90 - file:///usr/lib/qt5/qml/Sailfish/Silica/PageStack.js:90:
Error: Cannot push while operation is in progress: push

happens.


What's done wrong?
--
Marcin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.sailfishos.org/pipermail/devel/attachments/20140716/1369d197/attachment.html>


More information about the Devel mailing list