[SailfishDevel] Cannot pop while operation is in progress

Matthew Vogt matthew.vogt at jollamobile.com
Tue Aug 13 21:23:13 UTC 2013

Hi Wim.

"Cannot pop while operation is in progress" means that the previous PageStack operation is still animating, and you must wait until it finishes before issuing the next PageStack operation.  There are various strategies you can use for this, but they will all result in unattractive visual changes: either double animations or disorientating jumps.

It sounds like you should probably use the 'replaceAbove' function: https://sailfishos.org/sailfish-silica/qml-sailfishsilica-pagestack.html#replaceAbove-method
This function is equivalent to "pop all pages above the supplied target page, then push a new page", except that it occurs with a single visual transition.


From: devel-bounces at lists.sailfishos.org [devel-bounces at lists.sailfishos.org] on behalf of Wim de Vries [wsvries at xs4all.nl]
Sent: Wednesday, August 14, 2013 6:02 AM
To: devel at lists.sailfishos.org
Subject: [SailfishDevel] Cannot pop while operation is in progress

If I do pop() within a current page
pageStack.replace(pageStack.currentPage, Qt.resolvedUrl("controls/MTextEdit.qml"))
within main.qml I get:
"Cannot pop while operation is in progress"

I need to remove the previous page, so that the user cannot navigate back to this page.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.sailfishos.org/pipermail/devel/attachments/20130813/5dc22a48/attachment.html>

More information about the Devel mailing list