From bf8b1d93755cfe82e446909e7ff10448f846c775 Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Sat, 15 Oct 2011 18:23:58 +0200 Subject: [PATCH] Don't register recent files in app or private mode --- toolbars/midori-transferbar.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/toolbars/midori-transferbar.c b/toolbars/midori-transferbar.c index 4c35388b..56ed20eb 100644 --- a/toolbars/midori-transferbar.c +++ b/toolbars/midori-transferbar.c @@ -169,8 +169,11 @@ midori_transferbar_download_notify_status_cb (WebKitDownload* download, } g_strfreev (fingerprint); if (verified) - gtk_recent_manager_add_item (gtk_recent_manager_get_default (), - webkit_download_get_destination_uri (download)); + { + if (!sokoke_is_app_or_private ()) + gtk_recent_manager_add_item (gtk_recent_manager_get_default (), + webkit_download_get_destination_uri (download)); + } else gtk_image_set_from_stock (GTK_IMAGE (icon), GTK_STOCK_DIALOG_WARNING, GTK_ICON_SIZE_MENU); -- 2.39.5