<br><br><div class="gmail_quote">On Mon, Jul 27, 2009 at 3:52 AM, Cristian Oneţ <span dir="ltr">&lt;<a href="mailto:onet.cristian@gmail.com">onet.cristian@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
În data de Luni 27 Iulie 2009 04:05:38 Alvaro Soliverez a scris:<br>
<div><div></div><div class="h5">&gt; On Sun, Jul 26, 2009 at 11:11 AM, Cristian Oneţ<br>
&lt;<a href="mailto:onet.cristian@gmail.com">onet.cristian@gmail.com</a>&gt;wrote:<br>
&gt; &gt; În data de Duminică 26 Iulie 2009 16:06:27 Alvaro Soliverez a scris:<br>
&gt; &gt; &gt; &gt; It is enough to explicitly enable the updates but I would prefer<br>
&gt; &gt; &gt; &gt; disabling/restoring the updates in the transaction form only if that<br>
&gt; &gt; &gt; &gt; is needed<br>
&gt; &gt; &gt; &gt; (when they are not already disabled). That way when the updates on<br>
&gt; &gt; &gt; &gt; the parent<br>
&gt; &gt; &gt; &gt; widget are re-enabled they will also be re-enabled on the transaction<br>
&gt; &gt; &gt; &gt; form.<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Can you emit a signal and connect it to a slot that will<br>
&gt; &gt;<br>
&gt; &gt; setUpdatesEnabled<br>
&gt; &gt;<br>
&gt; &gt; &gt; to true?<br>
&gt; &gt; &gt; That might do it.<br>
&gt; &gt;<br>
&gt; &gt; What do you say about the attached patch instead of setting up a signal?<br>
&gt; &gt;<br>
&gt; &gt; Well, it&#39;s simpler than setting up a signal.  :))<br>
&gt;<br>
&gt; Does updatesEnabled return false only if it is disabled explicitly or<br>
&gt; always when a parent widget has been disabled?<br>
</div></div>It returns false when updates are disabled on a parent (that was the initial<br>
problem that we restored this &quot;false&quot; value and the framework acted like we<br>
disabled the updates explicitly)<br>
<div class="im"><br>
&gt; Do you think this will catch all cases?<br>
</div>I think it is the best compromise between wanting to disable updates and<br>
restore their original state after disabling but nonetheless avoid an explicit<br>
disabling by doing this.<br>
<br>
</blockquote><div><br>Commit it, then, and let&#39;s see how this approach works.<br></div></div><br>