~midori/midori/historyDatabasePanel

« back to all changes in this revision

Viewing changes to midori/midori-download.vala

  • Committer: RabbitBot
  • Author(s): Christian Dywan, Paweł Forysiuk
  • Date: 2014-03-10 21:00:41 UTC
  • mfrom: (6569.2.41 addingDefaultsAndFilters)
  • Revision ID: rabbitbot-20140310210041-b3j353zvxrfmlm2l
Add filters and defaults

Show diffs side-by-side

added added

removed removed

Lines of Context:
348
348
         * Returns whether it seems possible to save @download to the path specified by
349
349
         * @destination_uri, considering space on disk and permissions
350
350
         */
351
 
        public static bool has_enough_space (WebKit.Download download, string destination_uri) {
 
351
        public static bool has_enough_space (WebKit.Download download, string destination_uri, bool quiet=false) {
352
352
#if !HAVE_WEBKIT2
353
353
            var folder = File.new_for_uri (destination_uri).get_parent ();
354
354
            bool can_write;
380
380
                }
381
381
                else
382
382
                    assert_not_reached ();
383
 
                Sokoke.message_dialog (Gtk.MessageType.ERROR, message, detailed_message, false);
 
383
                if (!quiet)
 
384
                    Sokoke.message_dialog (Gtk.MessageType.ERROR, message, detailed_message, false);
384
385
                return false;
385
386
            }
386
387
#endif