fix video-monitor session settings
save settings when xjadeo terminates, not only on explicit session save/quit.
This commit is contained in:
@@ -102,6 +102,7 @@ VideoMonitor::quit ()
|
||||
if (!is_started()) return;
|
||||
if (state_connection.connected()) { state_connection.disconnect(); }
|
||||
if (clock_connection.connected()) { clock_connection.disconnect(); }
|
||||
query_full_state(true);
|
||||
process->write_to_stdin("quit\n");
|
||||
/* the 'quit' command should result in process termination
|
||||
* but in case it fails (communication failure, SIGSTOP, ??)
|
||||
|
||||
@@ -762,6 +762,7 @@ VideoTimeLine::control_video_monitor(int what, int param) {
|
||||
void
|
||||
VideoTimeLine::terminated_video_monitor () {
|
||||
if (vmonitor) {
|
||||
vmonitor->save_session();
|
||||
delete vmonitor;
|
||||
}
|
||||
GuiUpdate("set-xjadeo-active-off");
|
||||
|
||||
Reference in New Issue
Block a user