fix compile error

This commit is contained in:
Hylke Bons 2012-01-25 20:33:30 +00:00
parent a19bd79975
commit 54030de19d

View file

@ -173,7 +173,7 @@ namespace SparkleShare {
this.combo_box.Changed += delegate {
TreeIter iter;
this.combo_box.GetActiveIter (out iter);
// string selection = (string) this.combo_box.Model.GetValue (iter, 0);
string selection = (string) this.combo_box.Model.GetValue (iter, 0);
TreePath path = this.combo_box.Model.GetPath (iter);
if (path.Indices [0] == 0) {
@ -181,7 +181,7 @@ namespace SparkleShare {
Controller.SelectedFolder = null;
} else {
Console.WriteLine (">>> else statement: " + path.Indices [0]);
Controller.SelectedFolder = path.Indices [0].ToString ();
Controller.SelectedFolder = selection;
}
};