<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1" bgcolor="#FFFFFF">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">Hi Wim.<br>
<br>
"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.<br>
<br>
It sounds like you should probably use the 'replaceAbove' function: <a href="https://sailfishos.org/sailfish-silica/qml-sailfishsilica-pagestack.html#replaceAbove-method" target="_blank">
https://sailfishos.org/sailfish-silica/qml-sailfishsilica-pagestack.html#replaceAbove-method</a><br>
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. 
<br>
<br>
Thanks,<br>
Matt<br>
<br>
<div style="font-family: Times New Roman; color: #000000; font-size: 16px">
<hr tabindex="-1">
<div style="direction: ltr;" id="divRpF643528"><font size="2" color="#000000" face="Tahoma"><b>From:</b> devel-bounces@lists.sailfishos.org [devel-bounces@lists.sailfishos.org] on behalf of Wim de Vries [wsvries@xs4all.nl]<br>
<b>Sent:</b> Wednesday, August 14, 2013 6:02 AM<br>
<b>To:</b> devel@lists.sailfishos.org<br>
<b>Subject:</b> [SailfishDevel] Cannot pop while operation is in progress<br>
</font><br>
</div>
<div></div>
<div>If I do <font color="#006600" face="Helvetica, Arial, sans-serif">pop()</font> within a current page<br>
and<br>
<font color="#006600" face="monospace">pageStack.replace(pageStack.currentPage, Qt.resolvedUrl("controls/MTextEdit.qml"))</font><br>
within main.qml I get:<br>
"Cannot pop while operation is in progress"<br>
<br>
I need to remove the previous page, so that the user cannot navigate back to this page.<br>
Thanks.<br>
</div>
</div>
</div>
</body>
</html>