[Xfce4-commits] <midori:master> Don't mix up filesystem and file info
Christian Dywan
noreply at xfce.org
Mon Sep 17 19:28:04 CEST 2012
Updating branch refs/heads/master
to 5f18e3922140c92dbf668f84ed84da3fe1e4154f (commit)
from 0da919f4d911cee6c4cb68079d3bc39af981b828 (commit)
commit 5f18e3922140c92dbf668f84ed84da3fe1e4154f
Author: Christian Dywan <christian at twotoasts.de>
Date: Mon Sep 17 00:42:26 2012 +0200
Don't mix up filesystem and file info
midori/midori-download.vala | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/midori/midori-download.vala b/midori/midori-download.vala
index 806496a..64d6ddf 100644
--- a/midori/midori-download.vala
+++ b/midori/midori-download.vala
@@ -285,14 +285,16 @@ namespace Midori {
bool can_write;
uint64 free_space;
try {
- var info = folder.query_filesystem_info ("access::can-write,filesystem::free");
- can_write = info.get_attribute_boolean ("access::can-write");
+ var info = folder.query_filesystem_info ("filesystem::free");
free_space = info.get_attribute_uint64 ("filesystem::free");
+ info = folder.query_info ("access::can-write", 0);
+ can_write = info.get_attribute_boolean ("access::can-write");
}
catch (Error error) {
can_write = false;
free_space = 0;
}
+
if (free_space < download.total_size || !can_write) {
string message;
string detailed_message;
More information about the Xfce4-commits
mailing list