@@ -49,7 +49,6 @@ package org.bigbluebutton.modules.layout.managers
49
49
import org.bigbluebutton.modules.layout.model.LayoutLoader ;
50
50
import org.bigbluebutton.modules.layout.model.WindowLayout ;
51
51
import org.bigbluebutton.modules.layout.events.RedefineLayoutEvent ;
52
- import org.bigbluebutton.modules.layout.events.PopulateComboboxEvent ;
53
52
import org.bigbluebutton.util.i18n.ResourceUtil ;
54
53
55
54
public class LayoutManager extends EventDispatcher {
@@ -85,8 +84,9 @@ package org.bigbluebutton.modules.layout.managers
85
84
86
85
87
86
public function sendPopulateComboboxEvent ():void {
87
+ LogUtil. debug ("Sending layout to populate combobox" );
88
88
var sendLayoutsLoaded: LayoutsLoadedEvent = new LayoutsLoadedEvent(LayoutsLoadedEvent. SEND_LAYOUTS_LOADED_EVENT );
89
- sendLayoutsLoaded. layouts = _layouts ;
89
+ sendLayoutsLoaded. layouts = _layouts ;
90
90
_globalDispatcher . dispatchEvent (sendLayoutsLoaded);
91
91
}
92
92
@@ -97,9 +97,10 @@ package org.bigbluebutton.modules.layout.managers
97
97
98
98
99
99
public function checkIfCanSendLayoutToCombobox ():void {
100
- LogUtil. debug ("Estou tentando" );
101
100
if (comboboxIsInitialized) {
102
- _delayToSendLayoutsToCombobox . stop ();
101
+ if (_delayToSendLayoutsToCombobox != null ) {
102
+ _delayToSendLayoutsToCombobox . stop ();
103
+ }
103
104
sendPopulateComboboxEvent();
104
105
}
105
106
}
0 commit comments