<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Jan 22, 2013 at 3:00 PM, David Faure <span dir="ltr"><<a href="mailto:faure@kde.org" target="_blank">faure@kde.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">kmail/tagactionmanager.cpp has this code, in<br>
TagActionManager::updateActionStates(), which is called every time the<br>
selected message changes:<br>
<br>
[...]<br>
{<br>
Nepomuk2::Tag tag( it.key() );<br>
it.value()->setChecked( false );<br>
it.value()->setEnabled( true );<br>
it.value()->setText( i18n("Toggle Message Tag %1", tag.label() ) );<br>
}<br>
[...]<br>
<br>
The call to label() calls Nepomuk2::ResourceData::property() -><br>
Nepomuk2::ResourceData::load() -> Nepomuk2::ResourceData::addToWatcher() -><br>
DBus call to "start".<br>
<br>
All this for a resource that is going to be deleted immediately afterwards.<br>
Am I right that this is kind of pointless?<br>
<br>
Could we either:<br>
<br>
1) not watch resources by default, and let apps toggle it on when wanted?<br>
This wouldn't be "behavior compatible" though, so I suppose it's arguable if<br>
this should be done in 4.x. However I don't really know in which cases<br>
resources change, so I don't know if most users of a resource care, or don't<br>
care. What's a resource anyway? Clearly tags are, I suppose emails are, what<br>
else?<br></blockquote><div><br></div><div>This behaviour was added in 4.8, and so far hasn't been really used by anyone or advertised.<br> <br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
2) add a setWatchEnabled(false) method, and sprinkle that over every use of<br>
nepomuk resources that are temporary like the above.<br></blockquote><div><br></div><div>I'd like to do the inverse, and explicitly enable watching. Let me ask the release team.<br> <br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<span class="HOEnZb"><font color="#888888"><br>
--<br>
David Faure, <a href="mailto:faure@kde.org">faure@kde.org</a>, <a href="http://www.davidfaure.fr" target="_blank">http://www.davidfaure.fr</a><br>
Working on KDE, in particular KDE Frameworks 5<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>
</font></span></blockquote></div><br><br clear="all"><br>-- <br><span style="color:rgb(192,192,192)">Vishesh Handa</span><br>
</div></div>