<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div><font size="2">Hi,</font></div><div><font size="2"><br></font></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"><font size="2">I get the following error when I set empty string to (Loader) source property immediately after receiving rejected/accepted signal from earlier loaded dialog. If I delay unloading for a while then it's working ok. Am I doing something wrong or how could I check when it's ok to unload the dialog?<br></font></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"><font size="2"><br></font>
</div><div style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><font size="2"><a href=""><span style=" font-family:'Monospace'; font-size:9pt; font-weight:600; text-decoration: underline; color:#1414be;">file:///usr/lib/qt5/qml/Sailfish/Silica/private/PageStackIndicator.qml:139</span></a><span style=" font-family:'Monospace'; font-size:9pt; font-weight:600; color:#1414be;">: TypeError: Cannot read property '_forwardDestination' of null</span></font></div><div style="margin: 0px; text-indent: 0px; color: rgb(20, 20, 190); font-size: 9pt; font-family: 'Monospace'; background-color: transparent; font-style: normal;"><font size="2"><br><span style=" font-family:'Monospace'; font-size:9pt; font-weight:600; color:#1414be;"></span></font></div><div style="margin: 0px; text-indent: 0px; color: rgb(20, 20, 190); font-size: 9pt; font-family: 'Monospace'; background-color: transparent; font-style:
normal;"><font size="2"><span style="font-family: times new roman,new york,times,serif;"><span style="color: rgb(0, 0, 0);">Here is simple code I was using ...</span></span></font></div><div style="margin: 0px; text-indent: 0px; color: rgb(0, 0, 0); font-size: 13px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"><font size="2"><span style="font-family: times new roman,new york,times,serif;"><span style="color: rgb(0, 0, 0);"><br></span></span></font></div><div style="margin: 0px; text-indent: 0px; color: rgb(0, 0, 0); font-size: 13px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"><span style="text-decoration: underline;"><font size="2"><span style="font-family: times new roman,new york,times,serif;"><span style="color: rgb(0, 0, 0);">FirstPage.qml</span></span></font></span></div><div style="margin: 0px; text-indent: 0px; color: rgb(0,
0, 0); font-size: 13px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"><font size="2"><span style="font-family: times new roman,new york,times,serif;"><span style="color: rgb(0, 0, 0);"><br></span></span></font></div><div style="margin: 0px; text-indent: 0px; color: rgb(0, 0, 0); font-size: 13px; background-color: transparent; font-style: normal;"><font size="1"><span style="font-family: Courier New,courier,monaco,monospace,sans-serif;"><font><span><span style="color: rgb(0, 0, 0);">Page {<br> id: page<br></span></span></font></span></font></div><div style="margin-top: 0px; margin-bottom: 0px; margin-right: 0px; text-indent: 0px; color: rgb(0, 0, 0); font-size: 16px; background-color: transparent; font-style: normal;"><font size="1"><span style="font-family: Courier New,courier,monaco,monospace,sans-serif;"><span class="tab"> </span><span
class="tab"> </span><span class="tab"> ...</span><br><font><span><span style="color: rgb(0, 0, 0);"></span></span></font></span></font></div><div style="margin-top: 0px; margin-bottom: 0px; margin-right: 0px; text-indent: 0px; color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"><font size="3"><span style="font-family: times new roman,new york,times,serif;"><span style="color: rgb(0, 0, 0);"><font size="1"><span style="font-family: Courier New,courier,monaco,monospace,sans-serif;"> Button {<br> id: test<br> text: "Click
here"<br> onClicked: {<br> if(loaderTest.status === Loader.Null) {<br> loaderTest.source = "TestDialog.qml"<br> }<br> else<br> {
<br> if(loaderTest.status === Loader.Ready)<br> {<br> loaderTest.source = "" // after 'accept' case, this works ok.<br> }<br> }<br>
}<br> }<br><br> Loader { // test loader<br> id: loaderTest<br> onLoaded: console.log("QML: loaded")<br> onStatusChanged: console.log("QML: loader status " + status)<br> }<br><br> Connections {<br> target: loaderTest.item<br> onAccepted:
{<br> console.log("QML: OK")<br> //loaderTest.source = "" // unload later<br> }<br> onRejected: {<br> console.log("QML: NOK")<br> loaderTest.source = "" // unload -> generates error<br>
}<br> }</span></font></span></span></font></div><div style="margin-top: 0px; margin-bottom: 0px; margin-right: 0px; text-indent: 0px; color: rgb(0, 0, 0); font-size: 10px; font-family: Courier New,courier,monaco,monospace,sans-serif; background-color: transparent; font-style: normal;"><font size="3"><span style="font-family: times new roman,new york,times,serif;"><span style="color: rgb(0, 0, 0);"><font size="1"><span style="font-family: Courier New,courier,monaco,monospace,sans-serif;">...<br></span></font></span></span></font></div><div style="margin-top: 0px; margin-bottom: 0px; margin-right: 0px; text-indent: 0px; color: rgb(0, 0, 0); font-size: 10px; font-family: Courier New,courier,monaco,monospace,sans-serif; background-color: transparent; font-style: normal;"><br><font size="3"><span style="font-family: times new roman,new york,times,serif;"><span style="color: rgb(0, 0,
0);"></span></span></font></div><div style="margin-top: 0px; margin-bottom: 0px; margin-right: 0px; text-indent: 0px; color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"><span style="text-decoration: underline;"><font size="2"><span style="font-family: times new roman,new york,times,serif;"><span style="color: rgb(0, 0, 0);">TestDialog.qml:</span></span></font></span></div><div style="margin-top: 0px; margin-bottom: 0px; margin-right: 0px; text-indent: 0px; color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"><font size="3"><span style="font-family: times new roman,new york,times,serif;"><span style="color: rgb(0, 0, 0);"><br></span></span></font></div><div style="margin-top: 0px; margin-bottom: 0px; margin-right: 0px; text-indent: 0px; color: rgb(0, 0, 0); font-size: 16px;
font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"><font size="3"><span style="font-family: times new roman,new york,times,serif;"><span style="color: rgb(0, 0, 0);"><font size="1"><span style="font-family: Courier New,courier,monaco,monospace,sans-serif;">Dialog // nothing special here, Sailfish dialog<br>{<br> id: tD<br> DialogHeader {<br> id: dialogHeader<br> dialog: tD<br> title: "Title..."<br> }<br> Rectangle {<br> id: rec<br> anchors.centerIn: parent<br> width:
parent.width<br> height: 50<br> color: "black"<br> Text {<br> id: testing<br> anchors.centerIn: rec<br> color: Theme.secondaryHighlightColor<br> font.pixelSize: Theme.fontSizeLarge<br> text: "Here we are..."<br>
}<br> }<br> Component.onCompleted: tD.open()<br>}</span></font></span></span></font></div><div style="margin-top: 0px; margin-bottom: 0px; margin-right: 0px; text-indent: 0px; color: rgb(0, 0, 0); font-size: 10px; font-family: Courier New,courier,monaco,monospace,sans-serif; background-color: transparent; font-style: normal;"><br><font size="3"><span style="font-family: times new roman,new york,times,serif;"><span style="color: rgb(0, 0, 0);"></span></span></font></div><div style="margin-top: 0px; margin-bottom: 0px; margin-right: 0px; text-indent: 0px; color: rgb(0, 0, 0); font-size: 16px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"><font size="3"><span style="font-family: times new roman,new york,times,serif;"><span style="color: rgb(0, 0, 0);"><font size="2">Br,</font></span></span></font></div><div style="margin-top: 0px;
margin-bottom: 0px; margin-right: 0px; text-indent: 0px; color: rgb(0, 0, 0); font-size: 13px; font-family: times new roman,new york,times,serif; background-color: transparent; font-style: normal;"><font size="3"><span style="font-family: times new roman,new york,times,serif;"><span style="color: rgb(0, 0, 0);"><font size="2">Marko</font><br></span></span></font></div></div></body></html>