Hello, i have tried to add the feature where Stop Query button is only
effective when there is a query running though i couldn't test it out, but i
feel it should work, if it doesn't do tell me i will fix it.
also my real name is 'Smit Shah'. (yeah i forgot to mention it in my last
post)
diff --git a/querymodel.cpp b/querymodel.cpp
index d78a865..40c3da8 100644
--- a/querymodel.cpp
+++ b/querymodel.cpp
@@ -270,7 +270,8 @@ int Nepomuk::QueryModel::queryTime() const
void Nepomuk::QueryModel::stopQuery()
{
- d->m_currentQuery = 0;
+ if(d->m_currentQuery!=0)
+ d->m_currentQuery = 0;
}
_______________________________________________
Nepomuk mailing list
[email protected]
https://mail.kde.org/mailman/listinfo/nepomuk