fixup vwindow running status checks
[goodguy/history.git] / cinelerra-5.1 / cinelerra / preferencesthread.C
index 10af4ffbd2020901a2807209709cb094ebb3265a..8d8e22c79bc2aafe8e16d177ad1b113c21ccf660 100644 (file)
@@ -244,9 +244,9 @@ int PreferencesThread::apply_settings()
 
 
 
-               for(int i = 0; i < mwindow->vwindows.size(); i++)
-               {
+               for(int i = 0; i < mwindow->vwindows.size(); i++) {
                        VWindow *vwindow = mwindow->vwindows.get(i);
+                       if( !vwindow->is_running() ) continue;
                        vwindow->gui->lock_window("PreferencesThread::apply_settings");
                        vwindow->gui->meters->change_format(edl->session->meter_format,
                                edl->session->min_meter_db,
@@ -360,15 +360,7 @@ PreferencesWindow::PreferencesWindow(MWindow *mwindow,
        int x,
        int y)
  : BC_Window(_(PROGRAM_NAME ": Preferences"),
-       x,
-       y,
-       WIDTH,
-       HEIGHT,
-       (int)BC_INFINITY,
-       (int)BC_INFINITY,
-       0,
-       0,
-       1)
+       x,y, WIDTH,HEIGHT, WIDTH,HEIGHT, 1,0,1)
 {
        this->mwindow = mwindow;
        this->thread = thread;