]> rtime.felk.cvut.cz Git - frescor/frsh.git/commitdiff
GUI: Added missing check for FORB exception
authorMichal Sojka <sojkam1@fel.cvut.cz>
Thu, 28 May 2009 13:26:25 +0000 (15:26 +0200)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Thu, 28 May 2009 13:26:25 +0000 (15:26 +0200)
fres/frm_gui/resourcelistmodel.cpp

index 493619f954769e233934ac9ae540fc501f41fbc4..3525a08df6e0fb2f253366c14238b3ba7b5ee9e4 100644 (file)
@@ -41,6 +41,9 @@ int ResourceListModel::update()
     old = resources;
     fres_contract_broker_get_resources(fcb, &resources, &ev);
     forb_object_release(fcb);
+    if (forb_exception_occurred(&ev)) {
+       return -1;
+    }
 
     if (!old) {
         reset();