Sfoglia il codice sorgente

remove immature test log and add FIXME comment for catching fileDialog event

Isak Andersson 12 anni fa
parent
commit
77c820e3b8
1 ha cambiato i file con 1 aggiunte e 2 eliminazioni
  1. 1 2
      IDE/Contents/Source/SettingsWindow.cpp

+ 1 - 2
IDE/Contents/Source/SettingsWindow.cpp

@@ -79,7 +79,6 @@ void SettingsWindow::handleEvent(Event *event) {
 				extensions.push_back("");
 				extensions.push_back("");
 				globalFrame->showFileBrowser(CoreServices::getInstance()->getCore()->getUserHomeDirectory(), false, extensions, false);
 				globalFrame->showFileBrowser(CoreServices::getInstance()->getCore()->getUserHomeDirectory(), false, extensions, false);
 				globalFrame->fileDialog->addEventListener(this, UIEvent::OK_EVENT);
 				globalFrame->fileDialog->addEventListener(this, UIEvent::OK_EVENT);
-				printf("You see me poopin\n");
 #else
 #else
 				vector<CoreFileExtension> extensions;
 				vector<CoreFileExtension> extensions;
 				CoreFileExtension ext;
 				CoreFileExtension ext;
@@ -101,8 +100,8 @@ void SettingsWindow::handleEvent(Event *event) {
 				}
 				}
 #endif	
 #endif	
 			}
 			}
+			// FIXME: Event never comes here even though we are listening to it.
 			if(event->getDispatcher() == globalFrame->fileDialog && event->getEventCode() == UIEvent::OK_EVENT) {
 			if(event->getDispatcher() == globalFrame->fileDialog && event->getEventCode() == UIEvent::OK_EVENT) {
-				printf("Yes?! Yes this is Dialog! HAI\n");
 				String path = globalFrame->fileDialog->getSelection();
 				String path = globalFrame->fileDialog->getSelection();
 				if (path != "") {
 				if (path != "") {
 					externalTextEditorCommand->setText(path);
 					externalTextEditorCommand->setText(path);