Now DatFile and BiosFile are not updated if the user selects a directory.

Change 2 of 6 from
https://sourceforge.net/p/gelide/code/ci/b8da37d825b9548ba6548f96ce8efb84cf068001/
--- src/ui/dialog_system_edit.cpp
+++ src/ui/dialog_system_edit.cpp
@@ -311,8 +313,13 @@ void CDialogSystemEdit::onAcceptClicked(void){
 	// Pasamos la configuración al sistema
 	m_system->setName(m_entry_name.get_text());
 	m_system->setDescription(m_description_buf->get_text());
-	m_system->setDatFile(m_button_dat.get_filename());
-	m_system->setBiosFile(m_button_bios.get_filename());
+
+
+	if(!Glib::file_test(m_button_dat.get_filename(), Glib::FILE_TEST_IS_DIR))
+		m_system->setDatFile(m_button_dat.get_filename());
+	if(!Glib::file_test(m_button_bios.get_filename(), Glib::FILE_TEST_IS_DIR))
+		m_system->setBiosFile(m_button_bios.get_filename());
+
 	m_system->setIcon(m_image_icon.get_pixbuf());
 	m_system->setIconFile(m_icon_file);
 	m_system->setHomeDir(m_entry_home.get_text());
