hope this properly removes the preview from the scene...
authorMarcus Eggenberger <egs@quassel-irc.org>
Sat, 4 Oct 2008 23:56:36 +0000 (01:56 +0200)
committerMarcus Eggenberger <egs@quassel-irc.org>
Sat, 4 Oct 2008 23:56:36 +0000 (01:56 +0200)
src/qtui/chatscene.cpp

index d778df2..7db1f17 100644 (file)
@@ -623,10 +623,8 @@ void ChatScene::showWebPreview() {
 void ChatScene::clearWebPreviewEvent() {
 #ifdef HAVE_WEBKIT
   if(webPreview.previewItem) {
 void ChatScene::clearWebPreviewEvent() {
 #ifdef HAVE_WEBKIT
   if(webPreview.previewItem) {
-    if(!webPreview.delayTimer.isActive())
+    if(webPreview.previewItem->scene())
       removeItem(webPreview.previewItem);
       removeItem(webPreview.previewItem);
-    else
-      webPreview.delayTimer.stop();
     delete webPreview.previewItem;
     webPreview.previewItem = 0;
   }
     delete webPreview.previewItem;
     webPreview.previewItem = 0;
   }