Просмотр исходного кода

Move fileDialog event catching out of click event cheking in SettingsWindow.cpp

Isak Andersson 12 лет назад
Родитель
Сommit
381e3bc2d0
1 измененных файлов с 6 добавлено и 6 удалено
  1. 6 6
      IDE/Contents/Source/SettingsWindow.cpp

+ 6 - 6
IDE/Contents/Source/SettingsWindow.cpp

@@ -100,12 +100,12 @@ void SettingsWindow::handleEvent(Event *event) {
 				}
 #endif	
 			}
-			// FIXME: Event never comes here even though we are listening to it.
-			if(event->getDispatcher() == globalFrame->fileDialog && event->getEventCode() == UIEvent::OK_EVENT) {
-				String path = globalFrame->fileDialog->getSelection();
-				if (path != "") {
-					externalTextEditorCommand->setText(path);
-				}
+		}
+
+		if(event->getDispatcher() == globalFrame->fileDialog && event->getEventCode() == UIEvent::OK_EVENT) {
+			String path = globalFrame->fileDialog->getSelection();
+			if (path != "") {
+				externalTextEditorCommand->setText(path);
 			}
 		}
 	}