[Xfce4-commits] <midori:master> Fallback to the first browser if one is closed

Christian Dywan noreply at xfce.org
Mon Feb 22 19:04:01 CET 2010


Updating branch refs/heads/master
         to f3f53db4d7389a2cd2a5ab2627475bdfb0ee5fda (commit)
       from 8388e263c2981094e7f0b695705b0947931edebe (commit)

commit f3f53db4d7389a2cd2a5ab2627475bdfb0ee5fda
Author: Alexander Butenko <a.butenka at gmail.com>
Date:   Mon Feb 22 18:53:00 2010 +0100

    Fallback to the first browser if one is closed
    
    We need to keep one browser as the default for commands
    and opening files externally.

 midori/midori-app.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/midori/midori-app.c b/midori/midori-app.c
index 0bf21b1..d8cb2d9 100644
--- a/midori/midori-app.c
+++ b/midori/midori-app.c
@@ -172,7 +172,10 @@ midori_browser_destroy_cb (MidoriBrowser* browser,
     g_signal_emit (app, signals[REMOVE_BROWSER], 0, browser);
     katze_array_remove_item (app->browsers, browser);
     if (!katze_array_is_empty (app->browsers))
+    {
+        app->browser = katze_array_get_nth_item (app->browsers, 0);
         return FALSE;
+    }
     midori_app_quit (app);
     return TRUE;
 }



More information about the Xfce4-commits mailing list