]> spindle.queued.net Git - midori/commitdiff
Don't register recent files in app or private mode
authorChristian Dywan <christian@twotoasts.de>
Sat, 15 Oct 2011 16:23:58 +0000 (18:23 +0200)
committerChristian Dywan <christian@twotoasts.de>
Mon, 17 Oct 2011 00:47:55 +0000 (02:47 +0200)
toolbars/midori-transferbar.c

index 4c35388bdd51182ff3ce630ba6157510473d7581..56ed20eb119c6820979fe8eb6fcae7d795b7a881 100644 (file)
@@ -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);