[tracker/needle-info-bar: 7/7] tracker-needle: Do not warn on cancelled operations
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/needle-info-bar: 7/7] tracker-needle: Do not warn on cancelled operations
- Date: Thu, 6 Oct 2011 13:12:02 +0000 (UTC)
commit c7cbd53d283670f668ee4843cc1299812787db97
Author: Carlos Garnacho <carlos lanedo com>
Date: Thu Oct 6 15:02:48 2011 +0200
tracker-needle: Do not warn on cancelled operations
src/tracker-needle/tracker-result-store.vala | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/src/tracker-needle/tracker-result-store.vala b/src/tracker-needle/tracker-result-store.vala
index e5cd53c..4e5f22a 100644
--- a/src/tracker-needle/tracker-result-store.vala
+++ b/src/tracker-needle/tracker-result-store.vala
@@ -113,7 +113,9 @@ public class Tracker.ResultStore : Gtk.TreeModel, GLib.Object {
try {
b = yield cursor.next_async (cancellable);
} catch (GLib.Error ge) {
- warning ("Could not fetch row: %s\n", ge.message);
+ if (!cancellable.is_cancelled ()) {
+ warning ("Could not fetch row: %s\n", ge.message);
+ }
}
if (!b) {
@@ -499,7 +501,9 @@ public class Tracker.ResultStore : Gtk.TreeModel, GLib.Object {
GLib.Priority.DEFAULT,
cancellable);
} catch (GLib.Error ie) {
- warning ("Could not get thumbnail: %s", ie.message);
+ if (!cancellable.is_cancelled ()) {
+ warning ("Could not get thumbnail: %s", ie.message);
+ }
return;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]