Hey Smit<div><br></div><div>Your patch is -</div><div><br></div><div><div> void Nepomuk::QueryModel::stopQuery()</div><div> {</div><div>-    d-&gt;m_currentQuery = 0;</div><div>+    if(d-&gt;m_currentQuery!=0)</div><div>+        d-&gt;m_currentQuery = 0;</div>
<div> }</div><div><br></div><div>which basically sets m_currentQuery to 0, if it is not already 0. Logically, it doesn&#39;t make much of a difference if was already 0, and you let it be 0, or if you just set it to 0 again. :)</div>
<div><br></div><div>I think what Sebastian wanted you to do was to make the &quot;Stop Query&quot; button inactive when a query was not running. The button should become in active.</div><div><br></div><div><br><div class="gmail_quote">
On Wed, Mar 16, 2011 at 8:16 AM, Who Knows <span dir="ltr">&lt;<a href="mailto:who828@gmail.com">who828@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
 Hello, i have tried to add the feature where Stop Query button is only effective when there is a query running though i couldn&#39;t test it out, but i feel it should work, if it doesn&#39;t do tell me i will fix it.<br>
  also my real name is &#39;Smit Shah&#39;. (yeah i forgot to mention it in my last post)<br>
<br>_______________________________________________<br>
Nepomuk mailing list<br>
<a href="mailto:Nepomuk@kde.org">Nepomuk@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/nepomuk" target="_blank">https://mail.kde.org/mailman/listinfo/nepomuk</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br><font color="#999999">Vishesh Handa</font><br>
</div></div>