<br><br><div class="gmail_quote">On Wed, Mar 16, 2011 at 9:28 PM, Sebastian Trüg <span dir="ltr">&lt;<a href="mailto:trueg@kde.org">trueg@kde.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
A note about git usage: actually we just used git like we used svn.<br>
That was totally wrong. We should have created a branch and figured the<br>
feature out in there. Then either merge it or even create one patch from<br>
the branch and apply that to master.<br></blockquote><div><br></div><div>I agree. We should really start using git properly. </div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<br>
Cheers,<br>
Sebastian<br>
<div class="im"><br>
On 03/16/2011 03:43 PM, Vishesh Handa wrote:<br>
&gt;<br>
&gt;<br>
&gt; On Wed, Mar 16, 2011 at 8:01 PM, Sebastian Trüg &lt;<a href="mailto:trueg@kde.org">trueg@kde.org</a><br>
</div><div class="im">&gt; &lt;mailto:<a href="mailto:trueg@kde.org">trueg@kde.org</a>&gt;&gt; wrote:<br>
&gt;<br>
&gt;     On 03/16/2011 03:20 PM, Vishesh Handa wrote:<br>
&gt;     &gt;<br>
&gt;     &gt;<br>
&gt;     &gt; On Wed, Mar 16, 2011 at 7:37 PM, Sebastian Trüg &lt;<a href="mailto:trueg@kde.org">trueg@kde.org</a><br>
&gt;     &lt;mailto:<a href="mailto:trueg@kde.org">trueg@kde.org</a>&gt;<br>
</div><div><div></div><div class="h5">&gt;     &gt; &lt;mailto:<a href="mailto:trueg@kde.org">trueg@kde.org</a> &lt;mailto:<a href="mailto:trueg@kde.org">trueg@kde.org</a>&gt;&gt;&gt; wrote:<br>
&gt;     &gt;<br>
&gt;     &gt;     OK, so we only need a stopQuery() in the setQuery method,<br>
&gt;     right? IMHO<br>
&gt;     &gt;     that is much cleaner and easier to understand than setting<br>
&gt;     current query<br>
&gt;     &gt;     to 0.<br>
&gt;     &gt;<br>
&gt;     &gt;<br>
&gt;     &gt; That too won&#39;t work. Here is why -<br>
&gt;     &gt;<br>
&gt;     &gt; You run a query A, it finishes executing itself and then deletes<br>
&gt;     itself.<br>
&gt;     &gt; You then run query B, it will try to stop query A by deleting it. But<br>
&gt;     &gt; since it has already been deleted - Crash.<br>
&gt;<br>
&gt;     i dont think so. The query deletes itself async and before that emits<br>
&gt;     the finished signal which results in m_currentQuery being set to 0....<br>
&gt;     aha, that is what is missing!<br>
&gt;<br>
&gt;<br>
&gt; I tried that. The problem is that I still gets 1 result from the old query.<br>
&gt; Try it out -<br>
&gt; run - select ?r where { ?r nie:url ?url . }<br>
&gt; and then -<br>
&gt; select ?url where { ?r nie:url ?url . } LIMIT 10<br>
&gt; while the first query is still running.<br>
&gt;<br>
&gt;<br>
&gt;     &gt; The only way I could think of solving this was by checking if the<br>
&gt;     query<br>
&gt;     &gt; we were getting results for was the m_currentQuery, and otherwise<br>
&gt;     &gt; deleting it. That code was removed in the patch provided.<br>
&gt;     &gt;<br>
&gt;     &gt;<br>
&gt;     &gt;     On 03/16/2011 02:58 PM, Vishesh Handa wrote:<br>
&gt;     &gt;     &gt; This patch ( now committed ) is not that useful.<br>
&gt;     &gt;     &gt;<br>
&gt;     &gt;     &gt; The only thing it does is sets the time elapsed when you<br>
&gt;     click the<br>
&gt;     &gt;     &quot;Stop<br>
&gt;     &gt;     &gt; Query&quot; button. And it removes the old code which allowed you to<br>
&gt;     &gt;     &gt; automatically stop the old query if you ran a new one.<br>
&gt;     &gt;     &gt;<br>
&gt;     &gt;     &gt; When a query finishes execution, or is closed, it automatically<br>
&gt;     &gt;     deletes<br>
&gt;     &gt;     &gt; itself and therefore disconnects itself from all signals and<br>
&gt;     slots.<br>
&gt;     &gt;     &gt;<br>
&gt;     &gt;     &gt; I know the setting of &#39;d-&gt;m_currentQuery = 0&#39; was not completely<br>
&gt;     &gt;     &gt; obvious. But it did what it was supposed to. The query if it<br>
&gt;     was still<br>
&gt;     &gt;     &gt; being executed would have been deleted when more results<br>
&gt;     were received<br>
&gt;     &gt;     &gt; in slotNextResultReady()<br>
&gt;     &gt;     &gt;<br>
&gt;     &gt;     &gt; I&#39;ll either revert this patch or fix it.<br>
&gt;     &gt;     &gt;<br>
&gt;     &gt;     &gt; On Wed, Mar 16, 2011 at 4:37 PM, Who Knows &lt;<a href="mailto:who828@gmail.com">who828@gmail.com</a><br>
&gt;     &lt;mailto:<a href="mailto:who828@gmail.com">who828@gmail.com</a>&gt;<br>
&gt;     &gt;     &lt;mailto:<a href="mailto:who828@gmail.com">who828@gmail.com</a> &lt;mailto:<a href="mailto:who828@gmail.com">who828@gmail.com</a>&gt;&gt;<br>
&gt;     &gt;     &gt; &lt;mailto:<a href="mailto:who828@gmail.com">who828@gmail.com</a> &lt;mailto:<a href="mailto:who828@gmail.com">who828@gmail.com</a>&gt;<br>
&gt;     &lt;mailto:<a href="mailto:who828@gmail.com">who828@gmail.com</a> &lt;mailto:<a href="mailto:who828@gmail.com">who828@gmail.com</a>&gt;&gt;&gt;&gt; wrote:<br>
&gt;     &gt;     &gt;<br>
&gt;     &gt;     &gt;     The previous patch affected the copyright somehow so i am<br>
&gt;     &gt;     sending a<br>
&gt;     &gt;     &gt;     new one.<br>
&gt;     &gt;     &gt;<br>
&gt;     &gt;     &gt;<br>
&gt;     &gt;     &gt;        - Smit Shah (My real name)<br>
&gt;     &gt;     &gt;<br>
&gt;     &gt;     &gt;     _______________________________________________<br>
&gt;     &gt;     &gt;     Nepomuk mailing list<br>
&gt;     &gt;     &gt;     <a href="mailto:Nepomuk@kde.org">Nepomuk@kde.org</a> &lt;mailto:<a href="mailto:Nepomuk@kde.org">Nepomuk@kde.org</a>&gt;<br>
&gt;     &lt;mailto:<a href="mailto:Nepomuk@kde.org">Nepomuk@kde.org</a> &lt;mailto:<a href="mailto:Nepomuk@kde.org">Nepomuk@kde.org</a>&gt;&gt;<br>
&gt;     &gt;     &lt;mailto:<a href="mailto:Nepomuk@kde.org">Nepomuk@kde.org</a> &lt;mailto:<a href="mailto:Nepomuk@kde.org">Nepomuk@kde.org</a>&gt;<br>
&gt;     &lt;mailto:<a href="mailto:Nepomuk@kde.org">Nepomuk@kde.org</a> &lt;mailto:<a href="mailto:Nepomuk@kde.org">Nepomuk@kde.org</a>&gt;&gt;&gt;<br>
&gt;     &gt;     &gt;     <a href="https://mail.kde.org/mailman/listinfo/nepomuk" target="_blank">https://mail.kde.org/mailman/listinfo/nepomuk</a><br>
&gt;     &gt;     &gt;<br>
&gt;     &gt;     &gt;<br>
&gt;     &gt;     &gt;<br>
&gt;     &gt;     &gt;<br>
&gt;     &gt;     &gt; --<br>
&gt;     &gt;     &gt; Vishesh Handa<br>
&gt;     &gt;     &gt;<br>
&gt;     &gt;     &gt;<br>
&gt;     &gt;     &gt;<br>
&gt;     &gt;     &gt; _______________________________________________<br>
&gt;     &gt;     &gt; Nepomuk mailing list<br>
&gt;     &gt;     &gt; <a href="mailto:Nepomuk@kde.org">Nepomuk@kde.org</a> &lt;mailto:<a href="mailto:Nepomuk@kde.org">Nepomuk@kde.org</a>&gt;<br>
&gt;     &lt;mailto:<a href="mailto:Nepomuk@kde.org">Nepomuk@kde.org</a> &lt;mailto:<a href="mailto:Nepomuk@kde.org">Nepomuk@kde.org</a>&gt;&gt;<br>
&gt;     &gt;     &gt; <a href="https://mail.kde.org/mailman/listinfo/nepomuk" target="_blank">https://mail.kde.org/mailman/listinfo/nepomuk</a><br>
&gt;     &gt;     _______________________________________________<br>
&gt;     &gt;     Nepomuk mailing list<br>
&gt;     &gt;     <a href="mailto:Nepomuk@kde.org">Nepomuk@kde.org</a> &lt;mailto:<a href="mailto:Nepomuk@kde.org">Nepomuk@kde.org</a>&gt;<br>
&gt;     &lt;mailto:<a href="mailto:Nepomuk@kde.org">Nepomuk@kde.org</a> &lt;mailto:<a href="mailto:Nepomuk@kde.org">Nepomuk@kde.org</a>&gt;&gt;<br>
&gt;     &gt;     <a href="https://mail.kde.org/mailman/listinfo/nepomuk" target="_blank">https://mail.kde.org/mailman/listinfo/nepomuk</a><br>
&gt;     &gt;<br>
&gt;     &gt;<br>
&gt;     &gt;<br>
&gt;     &gt;<br>
&gt;     &gt; --<br>
&gt;     &gt; Vishesh Handa<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
</div></div>&gt; --<br>
&gt; Vishesh Handa<br>
</blockquote></div><br><br clear="all"><br>-- <br><font color="#999999">Vishesh Handa</font><br>