X-Git-Url: http://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fguicast%2Fbcrecentlist.C;h=73d2859dd601da8bbeb0be4222f6f9c7988b84b9;hb=49d684c03f57629c656d81d76b84737c6449e0b4;hp=3d0d2839066270b886713fadf5fb053c067bdfbe;hpb=21c2e6b36d6a96c2f662a89459d607b5a387f4eb;p=goodguy%2Fhistory.git diff --git a/cinelerra-5.1/guicast/bcrecentlist.C b/cinelerra-5.1/guicast/bcrecentlist.C index 3d0d2839..73d2859d 100644 --- a/cinelerra-5.1/guicast/bcrecentlist.C +++ b/cinelerra-5.1/guicast/bcrecentlist.C @@ -67,7 +67,7 @@ BC_RecentList::~BC_RecentList() int BC_RecentList::handle_event() { BC_ListBoxItem *item = get_selection(0, 0); - if (item < 0) return 0; + if( !item ) return 0; char *text = item->get_text(); if (text && textbox) { // change the text in the textbox