<html>
<body>
<div style="font-family: Verdana, Arial, Helvetica, Sans-Serif;">
<table bgcolor="#f9f3c9" width="100%" cellpadding="8" style="border: 1px #c9c399 solid;">
<tr>
<td>
This is an automatically generated e-mail. To reply, visit:
<a href="https://git.reviewboard.kde.org/r/117433/">https://git.reviewboard.kde.org/r/117433/</a>
</td>
</tr>
</table>
<br />
<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">> @MartinK: was there a specific reason to use QWindow::close()? Will using hide() cause problems?
Yes the reason was that the Dialogs would just pile up in memory after time if they were just hidden, so I went for closing them (which also deleteLaters them) to save memory.
However I'm rewriting this part to recycle only couple Dialogs, this will also just hide them instead of close.</pre>
<br />
<p>- Martin Klapetek</p>
<br />
<p>On April 8th, 2014, 11:49 a.m. CEST, Martin Gräßlin wrote:</p>
<table bgcolor="#fefadf" width="100%" cellspacing="0" cellpadding="8" style="background-image: url('https://git.reviewboard.kde.org/static/rb/images/review_request_box_top_bg.ab6f3b1072c9.png'); background-position: left top; background-repeat: repeat-x; border: 1px black solid;">
<tr>
<td>
<div>Review request for Plasma and Martin Klapetek.</div>
<div>By Martin Gräßlin.</div>
<p style="color: grey;"><i>Updated April 8, 2014, 11:49 a.m.</i></p>
<div style="margin-top: 1.5em;">
<b style="color: #575012; font-size: 10pt;">Repository: </b>
plasma-workspace
</div>
<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Description </h1>
<table width="100%" bgcolor="#ffffff" cellspacing="0" cellpadding="10" style="border: 1px solid #b8b5a0">
<tr>
<td>
<pre style="margin: 0; padding: 0; white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">[applets/notifications] Use ::hide() instead of ::close()
QWindow::close() is destroying the window directly, while ::hide() just
unmaps the window. The main difference is that with hide() the window
manager can still access the x window in the close handling and with
close that's not possible and KWin generates runtime errors.
@MartinK: was there a specific reason to use QWindow::close()? Will using hide() cause problems?</pre>
</td>
</tr>
</table>
<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Testing </h1>
<table width="100%" bgcolor="#ffffff" cellspacing="0" cellpadding="10" style="border: 1px solid #b8b5a0">
<tr>
<td>
<pre style="margin: 0; padding: 0; white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">KWin doesn't print warnings when a notification closes.</pre>
</td>
</tr>
</table>
<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Diffs</b> </h1>
<ul style="margin-left: 3em; padding-left: 0;">
<li>applets/notifications/package/contents/ui/NotificationPopup.qml <span style="color: grey">(f738e000b4a28c8c43cbbb9410a53f8b34e4fc56)</span></li>
<li>applets/notifications/plugin/notificationshelper.cpp <span style="color: grey">(9cc119151232d244b4a05d89f07069a80b1da96c)</span></li>
</ul>
<p><a href="https://git.reviewboard.kde.org/r/117433/diff/" style="margin-left: 3em;">View Diff</a></p>
</td>
</tr>
</table>
</div>
</body>
</html>