[epiphany] Fixed history window crash on no search results. https://bugzilla.gnome.org/show_bug.cgi?id=732876



commit 6d8e4950a379f31e5b0ba78f9d2990f62bbfc54f
Author: Robert Roth <robert roth off gmail com>
Date:   Tue Jul 8 11:35:59 2014 +0300

    Fixed history window crash on no search results. https://bugzilla.gnome.org/show_bug.cgi?id=732876

 src/ephy-history-window.c |   11 ++++++-----
 1 files changed, 6 insertions(+), 5 deletions(-)
---
diff --git a/src/ephy-history-window.c b/src/ephy-history-window.c
index 5cf0a8a..87c61d3 100644
--- a/src/ephy-history-window.c
+++ b/src/ephy-history-window.c
@@ -97,6 +97,12 @@ add_urls_source (EphyHistoryWindow *self)
        GTimer *timer;
        GList *element;
 
+       if (self->priv->urls == NULL)
+       {
+               self->priv->sorter_source = 0;
+               return G_SOURCE_REMOVE;
+       }
+
        timer = g_timer_new ();
        g_timer_start (timer);
 
@@ -118,11 +124,6 @@ add_urls_source (EphyHistoryWindow *self)
 
        g_timer_destroy (timer);
 
-       if (self->priv->urls == NULL)
-       {
-               self->priv->sorter_source = 0;
-               return G_SOURCE_REMOVE;
-       }
        return G_SOURCE_CONTINUE;
 }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]