mirror of
https://github.com/TTimo/GtkRadiant.git
synced 2025-01-10 12:01:10 +00:00
Merge pull request #516 from ensiform/no-classname-delete
Prevent users from deleting the classname key in entity dialog
This commit is contained in:
commit
91fe38c3fb
1 changed files with 4 additions and 0 deletions
|
@ -1085,6 +1085,10 @@ static void proplist_selection_changed( GtkTreeSelection* selection, gpointer da
|
||||||
char* val;
|
char* val;
|
||||||
gtk_tree_model_get( model, &iter, 0, &key, 1, &val, -1 );
|
gtk_tree_model_get( model, &iter, 0, &key, 1, &val, -1 );
|
||||||
|
|
||||||
|
if ( stricmp( key, "classname" ) == 0 ) {
|
||||||
|
gtk_widget_set_sensitive( del_button, FALSE );
|
||||||
|
}
|
||||||
|
|
||||||
gtk_entry_set_text( GTK_ENTRY( EntWidgets[EntKeyField] ), key );
|
gtk_entry_set_text( GTK_ENTRY( EntWidgets[EntKeyField] ), key );
|
||||||
gtk_entry_set_text( GTK_ENTRY( EntWidgets[EntValueField] ), val );
|
gtk_entry_set_text( GTK_ENTRY( EntWidgets[EntValueField] ), val );
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue