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

Andrey Kozhevnikov coderusinbox at gmail.com
Wed Jul 16 12:46:11 UTC 2014


In this case you'd better connect to pageStack.busyChanged :) and wait 
while pageStack.busy

16.07.2014 18:42, Marcin M. ?????:
> This way the dialog opens after closing the dialog. Worked it around by
>
>
>     Component.onCompleted:
>     {
>         while (status != PageStatus.Active) {}
>         openWelcomeDialog()
>     }
>
> --
> Marcin
>
>
> 2014-07-16 11:01 GMT+02:00 Andrey Kozhevnikov <coderusinbox at gmail.com 
> <mailto:coderusinbox at gmail.com>>:
>
>     do not use onCompleted in this case. use status ==
>     PageStatus.Active instead
>
>     16.07.2014 14:58, Marcin M. ?????:
>>     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
>>
>>
>>     _______________________________________________
>>     SailfishOS.org Devel mailing list
>>     To unsubscribe, please send a mail todevel-unsubscribe at lists.sailfishos.org  <mailto:devel-unsubscribe at lists.sailfishos.org>
>
>
>     _______________________________________________
>     SailfishOS.org Devel mailing list
>     To unsubscribe, please send a mail to
>     devel-unsubscribe at lists.sailfishos.org
>     <mailto:devel-unsubscribe at lists.sailfishos.org>
>
>
>
>
> _______________________________________________
> SailfishOS.org Devel mailing list
> To unsubscribe, please send a mail to devel-unsubscribe at lists.sailfishos.org

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.sailfishos.org/pipermail/devel/attachments/20140716/b82f0200/attachment.html>


More information about the Devel mailing list