== ImageBrowser ==
[blender.git] / source / blender / src / header_imasel.c
index bd09416e1ba44223793c685b029c22514322481e..8650d620cc0d496a4498a3257eea417d2809996c 100644 (file)
@@ -139,9 +139,13 @@ void imasel_buttons(void)
 
        cpack(0x0);
        xco+=XIC+10;
-       uiDefIconButBitS(block, TOG, FILE_BOOKMARKS, B_RELOADIMASELDIR, ICON_BOOKMARKS,xco+=XIC,0,XIC,YIC, &simasel->flag, 0, 0, 0, 0, "Toggles Bookmarks on/off");
-       xco+=XIC+10;
 
+       type = simasel->type;
+
+       if (type != FILE_MAIN) {
+               uiDefIconButBitS(block, TOG, FILE_BOOKMARKS, B_RELOADIMASELDIR, ICON_BOOKMARKS,xco+=XIC,0,XIC,YIC, &simasel->flag, 0, 0, 0, 0, "Toggles Bookmarks on/off");
+               xco+=XIC+10;
+       } 
        xcotitle= xco;
        xco+= BIF_GetStringWidth(G.font, simasel->title, (U.transopts & USER_TR_BUTTONS));
        
@@ -154,8 +158,6 @@ void imasel_buttons(void)
        uiBlockEndAlign(block);
        xco+=20;
        
-       type = simasel->type;
-       
        if(!simasel->files) {
                simasel->files = BIF_filelist_new();
        }