<table><tr><td style="">zzag created this revision.<br />zzag added a reviewer: Plasma.<br />Herald added a project: Plasma.<br />Herald added a subscriber: plasma-devel.<br />zzag requested review of this revision.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D25047">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>When a user tries to set operation mode to "Times", the Apply button<br />
remains enabled after it's been clicked. The reason for that is timings<br />
provided by the kcm include seconds and milliseconds, while timings<br />
sent by KWin don't.</p>

<p>Because seconds and milliseconds are different, CompositorAdapter::<br />
checkStaged() will return false even though hours and minutes haven't<br />
been modified by the user.</p>

<p>In order to address this problem, my patch adjusts the TimeField<br />
component so it provides Date objects with seconds and milliseconds set<br />
to 0. There is another way to fix this issue though. We could check<br />
whether only hours and minutes have been changed in checkStaged() method.</p></div></div><br /><div><strong>TEST PLAN</strong><div><ul class="remarkup-list">
<li class="remarkup-list-item">Set operation mode to "Times"</li>
<li class="remarkup-list-item">Click the Apply button</li>
<li class="remarkup-list-item">Check that the Apply button is disabled</li>
</ul></div></div><br /><div><strong>REPOSITORY</strong><div><div>R119 Plasma Desktop</div></div></div><br /><div><strong>BRANCH</strong><div><div>reset-minutes-and-milliseconds</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D25047">https://phabricator.kde.org/D25047</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>kcms/nightcolor/package/contents/ui/TimeField.qml</div></div></div><br /><div><strong>To: </strong>zzag, Plasma<br /><strong>Cc: </strong>plasma-devel, LeGast00n, The-Feren-OS-Dev, jraleigh, fbampaloukas, GB_2, ragreen, ZrenBot, ngraham, alexeymin, himcesjf, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, ahiemstra, mart<br /></div>