rework android-rmt display, add a few buttons
[goodguy/history.git] / cinelerra-5.0 / cinelerra / clipedit.C
index d747f7e4b33f248e147c3d6880269c66cac690b7..76cd8744421802d91683388fc602a44a44723087 100644 (file)
@@ -48,6 +48,7 @@ ClipEdit::ClipEdit(MWindow *mwindow, AWindow *awindow, VWindow *vwindow)
 
 ClipEdit::~ClipEdit()
 {
+       close_window();
 }
 
 // After the window is closed and deleted, this is called.
@@ -89,7 +90,7 @@ void ClipEdit::handle_close_event(int result)
 
 // For creating new clips, the original was copied in add_clip.
 // For editing old clips, the original was transferred to another variable.
-       if(!create_it) delete clip;
+       if(!create_it) clip->remove_user();
        original = 0;
        clip = 0;
        create_it = 0;
@@ -146,7 +147,7 @@ void ClipEdit::create_clip(EDL *clip)
 
 
 ClipEditWindow::ClipEditWindow(MWindow *mwindow, ClipEdit *thread)
- : BC_Window(PROGRAM_NAME ": Clip Info"
+ : BC_Window(_(PROGRAM_NAME ": Clip Info")
        mwindow->gui->get_abs_cursor_x(1) - 400 / 2,
        mwindow->gui->get_abs_cursor_y(1) - 350 / 2,
        400,