projects
/
goodguy
/
history.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix histogram bez keyframe interp, update plugins/fonts/fonts.scale, edl copy clip...
[goodguy/history.git]
/
cinelerra-5.1
/
cinelerra
/
labeledit.C
diff --git
a/cinelerra-5.1/cinelerra/labeledit.C
b/cinelerra-5.1/cinelerra/labeledit.C
index 22c5252a802dac626ce676ad56e20ef01c7bd4ad..22681918de4c0ae8a245a4126682fc422501604a 100644
(file)
--- a/
cinelerra-5.1/cinelerra/labeledit.C
+++ b/
cinelerra-5.1/cinelerra/labeledit.C
@@
-61,7
+61,10
@@
void LabelEdit::handle_close_event(int result)
void LabelEdit::handle_done_event(int result)
{
void LabelEdit::handle_done_event(int result)
{
- awindow->gui->async_update_assets();
+ if( !result ) {
+ strcpy(label->textstr, label_edit_window->textbox->get_text());
+ awindow->gui->async_update_assets();
+ }
}
BC_Window *LabelEdit::new_gui()
}
BC_Window *LabelEdit::new_gui()
@@
-91,7
+94,6
@@
void LabelEditWindow::create_objects()
int x = 10, y = 10;
int x1 = x;
int x = 10, y = 10;
int x1 = x;
- BC_TextBox *textbox;
BC_Title *title;
add_subwindow(title = new BC_Title(x1, y, _("Label Text:")));
BC_Title *title;
add_subwindow(title = new BC_Title(x1, y, _("Label Text:")));
@@
-114,7
+116,6
@@
LabelEditComments::LabelEditComments(LabelEditWindow *window, int x, int y, int
int LabelEditComments::handle_event()
{
int LabelEditComments::handle_event()
{
- strcpy(window->label->textstr, get_text());
return 1;
}
return 1;
}