Author: akv
Date: 2013-06-09 00:21:35 +0200 (Sun, 09 Jun 2013)
New Revision: 4414

Modified:
   trunk/src/rs-actions.c
Log:
Selecting first thumbnil if none is open...

Modified: trunk/src/rs-actions.c
===================================================================
--- trunk/src/rs-actions.c      2013-06-08 22:07:52 UTC (rev 4413)
+++ trunk/src/rs-actions.c      2013-06-08 22:21:35 UTC (rev 4414)
@@ -1110,6 +1110,14 @@
        else
                rs->slideshow_running = FALSE;
 
+       GList *selected = rs_store_get_selected_names(rs->store);
+       if (g_list_length(selected) == 0)
+       {
+               const gchar *name = rs_store_get_first_last(rs->store, 1);
+               rs_store_set_selected_name(rs->store, name, TRUE);
+       }
+       g_list_free(selected);
+
        if (rs->slideshow_running)
        {
                g_timeout_add(5000, (GSourceFunc) slideshow_play, rs);


_______________________________________________
Rawstudio-commit mailing list
[email protected]
http://rawstudio.org/cgi-bin/mailman/listinfo/rawstudio-commit

Reply via email to