[statusicon] Fix bug where the size of a temporary directory is checked that may not exist anymore

This commit is contained in:
Hylke Bons 2010-08-11 23:53:32 +01:00
parent bcafa7c94f
commit eea38eb0f0
3 changed files with 11 additions and 2 deletions

View file

@ -311,6 +311,8 @@ namespace SparkleLib {
public void Rebase ()
{
Add (); // TODO: Experiment for the "You have unstaged changes" bug
Watcher.EnableRaisingEvents = false;
SparkleHelpers.DebugInfo ("Git", "[" + Name + "] Rebasing changes...");

View file

@ -131,9 +131,10 @@ namespace SparkleShare {
double size = 0;
FileInfo [] files = parent.GetFiles();
if (!parent.Name.Equals ("rebase-apply"))
return 0;
foreach (FileInfo file in files) {
foreach (FileInfo file in parent.GetFiles()) {
if (!file.Exists)
return 0;

View file

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8" ?>
<sparkleshare_invitation>
<server>git.gnome.org</server>
<repository>gnome-design</repository>
<key>a22bc6f4b9ffe8e5acd4be0838d41aa10a1187dd</key>
</sparkleshare_invitation>