glx ply3d fixes, async_gui updates for edits, dflt vs auto kfrm fix, mask mode fix...
[goodguy/history.git] / cinelerra-5.1 / cinelerra / zwindow.C
index 29a28a1b22a52ba78162b5201622b0154c1f61f0..f3ba30f265e368f4308d87ba4f8992f965ad7339 100644 (file)
@@ -72,6 +72,7 @@ void Mixers::del_mixer(int idx)
 
 void Mixer::set_title(const char *tp)
 {
+       if( tp == title ) return;
        strncpy(title, tp, sizeof(title));
        title[sizeof(title)-1] = 0;
 }
@@ -249,8 +250,9 @@ void ZWindow::set_title(const char *tp)
        char *cp = title, *ep = cp + sizeof(title)-1;
        cp += snprintf(title, ep-cp, _("Mixer %d"), idx);
        if( tp ) cp += snprintf(cp, ep-cp, ": %s", tp);
+       else tp = title;
        Mixer *mixer = mwindow->edl->mixers.get_mixer(idx);
-       if( mixer && tp != mixer->title ) mixer->set_title(tp);
+       if( mixer ) mixer->set_title(title);
 }
 
 void ZWindow::reposition(int x, int y, int w, int h)