]> git.tdb.fi Git - ext/subsurface.git/blobdiff - info.c
Fix the stupid gtk combo box text reset issue for real
[ext/subsurface.git] / info.c
diff --git a/info.c b/info.c
index 8436a1336b9ee84ae9e57fff1d277a03349da803..11107b1ca91c461eb41245bea72032238305f8fe 100644 (file)
--- a/info.c
+++ b/info.c
@@ -100,7 +100,7 @@ static void set_combo_box_entry_text(GtkComboBoxEntry *combo_box, const char *te
        GtkEntry *entry = GTK_ENTRY(gtk_bin_get_child(GTK_BIN(combo_box)));
        gtk_combo_box_set_active(GTK_COMBO_BOX(combo_box), -1);
        if (!*text)
-               text = "\n";
+               gtk_entry_set_text(entry, " ");
        gtk_entry_set_text(entry, text);
 }