[gthumb] Fixed crash when changing the sorting order very fast
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gthumb] Fixed crash when changing the sorting order very fast
- Date: Fri, 27 Aug 2010 06:55:26 +0000 (UTC)
commit 1ae1a7b1e4c514ce8fac5df0091c61ef706ff872
Author: Paolo Bacchilega <paobac src gnome org>
Date: Fri Aug 27 08:54:08 2010 +0200
Fixed crash when changing the sorting order very fast
[bug #628071]
gthumb/gth-browser.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gthumb/gth-browser.c b/gthumb/gth-browser.c
index e18776f..10f908b 100644
--- a/gthumb/gth-browser.c
+++ b/gthumb/gth-browser.c
@@ -1273,13 +1273,13 @@ _gth_browser_set_sort_order (GthBrowser *browser,
inverse);
gth_browser_update_title (browser);
- if (! browser->priv->constructed)
+ if (! browser->priv->constructed || (browser->priv->location == NULL))
return;
g_file_info_set_attribute_string (browser->priv->location->info, "sort::type", (sort_type != NULL) ? sort_type->name : "general::unsorted");
g_file_info_set_attribute_boolean (browser->priv->location->info, "sort::inverse", (sort_type != NULL) ? inverse : FALSE);
- if (! save)
+ if (! save || (browser->priv->location_source == NULL))
return;
gth_file_source_write_metadata (browser->priv->location_source,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]