From: Marcus Eggenberger Date: Sat, 4 Oct 2008 23:56:36 +0000 (+0200) Subject: hope this properly removes the preview from the scene... X-Git-Tag: 0.3.1~198 X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=commitdiff_plain;h=1fbaba2eebffb41bafaca2e6853bb0782db9f198 hope this properly removes the preview from the scene... --- diff --git a/src/qtui/chatscene.cpp b/src/qtui/chatscene.cpp index d778df23..7db1f170 100644 --- a/src/qtui/chatscene.cpp +++ b/src/qtui/chatscene.cpp @@ -623,10 +623,8 @@ void ChatScene::showWebPreview() { void ChatScene::clearWebPreviewEvent() { #ifdef HAVE_WEBKIT if(webPreview.previewItem) { - if(!webPreview.delayTimer.isActive()) + if(webPreview.previewItem->scene()) removeItem(webPreview.previewItem); - else - webPreview.delayTimer.stop(); delete webPreview.previewItem; webPreview.previewItem = 0; }