<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">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-&gt;setName(m_entry_name.get_text());
 	m_system-&gt;setDescription(m_description_buf-&gt;get_text());
-	m_system-&gt;setDatFile(m_button_dat.get_filename());
-	m_system-&gt;setBiosFile(m_button_bios.get_filename());
+
+
+	if(!Glib::file_test(m_button_dat.get_filename(), Glib::FILE_TEST_IS_DIR))
+		m_system-&gt;setDatFile(m_button_dat.get_filename());
+	if(!Glib::file_test(m_button_bios.get_filename(), Glib::FILE_TEST_IS_DIR))
+		m_system-&gt;setBiosFile(m_button_bios.get_filename());
+
 	m_system-&gt;setIcon(m_image_icon.get_pixbuf());
 	m_system-&gt;setIconFile(m_icon_file);
 	m_system-&gt;setHomeDir(m_entry_home.get_text());
</pre></body></html>