aboutsummaryrefslogtreecommitdiffstats
path: root/embed/mozilla/ContentHandler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'embed/mozilla/ContentHandler.cpp')
-rw-r--r--embed/mozilla/ContentHandler.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/embed/mozilla/ContentHandler.cpp b/embed/mozilla/ContentHandler.cpp
index d7dd0f4d7..0e5664019 100644
--- a/embed/mozilla/ContentHandler.cpp
+++ b/embed/mozilla/ContentHandler.cpp
@@ -142,10 +142,14 @@ NS_IMETHODIMP GContentHandler::PromptForSaveToFile(
BuildDownloadPath (filename, _retval);
g_free (filename);
+ gtk_widget_destroy (GTK_WIDGET (dialog));
+
return NS_OK;
}
else
{
+ gtk_widget_destroy (GTK_WIDGET (dialog));
+
return NS_ERROR_FAILURE;
}
}