[Xfce4-commits] <postler:master> Return from GetMessage if iter is no longer valid
Christian Dywan
noreply at xfce.org
Sat Jul 2 17:08:05 CEST 2011
Updating branch refs/heads/master
to 1e1af39ff36e313af95912ccf70e5b55b872d99b (commit)
from 78961aafef390dc5af273e3fe55f0405426a1ec1 (commit)
commit 1e1af39ff36e313af95912ccf70e5b55b872d99b
Author: Christian Dywan <christian at twotoasts.de>
Date: Fri Jul 1 21:04:02 2011 +0200
Return from GetMessage if iter is no longer valid
postler/postler-client.vala | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/postler/postler-client.vala b/postler/postler-client.vala
index 302fb13..adf30be 100644
--- a/postler/postler-client.vala
+++ b/postler/postler-client.vala
@@ -73,9 +73,13 @@ namespace Postler {
message.from_error (error.message.replace (
"org.gtk.GDBus.UnmappedGError.Quark._g_2dfile_2derror_2dquark.Code24", "GLib.FileError"));
}
+ /* The path is null if the row was removed during the async call */
+ Gtk.TreePath? path = row.get_path ();
+ if (path == null)
+ return;
Gtk.TreeIter iter;
- if (row.get_model ().get_iter (out iter, row.get_path ()))
- row.get_model ().row_changed (row.get_path (), iter);
+ if (row.get_model ().get_iter (out iter, path))
+ row.get_model ().row_changed (path, iter);
}
public async GLib.List<Message> get_thread (Message parent) throws GLib.Error {
More information about the Xfce4-commits
mailing list