changeset 35941:45da530449e4

Simplify if-clauses after r36034.
author ib
date Thu, 21 Mar 2013 11:19:34 +0000
parents 0d59a87d2e28
children a24e13d192e7
files gui/dialog/fileselect.c
diffstat 1 files changed, 2 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/gui/dialog/fileselect.c	Thu Mar 21 11:18:10 2013 +0000
+++ b/gui/dialog/fileselect.c	Thu Mar 21 11:19:34 2013 +0000
@@ -367,17 +367,11 @@
        if ( c ) c=gstrcmp( dir,fname );
       }
    }
-  if ( c && dir )
-   {
-     fs_AddPathUtf8(dir, GTK_POS_TOP);
-   }
+  if ( c && dir ) fs_AddPathUtf8(dir, GTK_POS_TOP);
  }
  free( dir );
  fname = getenv( "HOME" );
- if ( fname )
-  {
-   fs_AddPathUtf8(fname, GTK_POS_BOTTOM);
-  }
+ if ( fname ) fs_AddPathUtf8(fname, GTK_POS_BOTTOM);
  else fsTopList_items=g_list_append( fsTopList_items,"/home" );
  if (stat( "/media",&f ) == 0) fsTopList_items=g_list_append( fsTopList_items,"/media" );
  if (stat( "/mnt",&f ) == 0) fsTopList_items=g_list_append( fsTopList_items,"/mnt" );