From 3a975f479823c16bc294f67cf558e06b357f2c38 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Sat, 7 May 2005 15:11:51 +0000 Subject: [PATCH] Properly set the state of all radio buttons when a project file is loaded. This also affects what happens when "File -> new" is selected. On Windows "split by time" was not selectable anymore after "File -> new" if it had been selected before. Fixes Anthill bug 131. --- ChangeLog | 7 +++++++ src/mmg/tab_global.cpp | 6 ++---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 689feffa3..a509fc7b3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2005-05-07 Moritz Bunkus + + * mmg: bug fix: If splitting was enabled and "splitting by time" + selected and the user chose "new" from the "File" menu then + "splitting by time" was not selectable anymore. This happened + only on Windows. Fixes Anthill bug 131. + 2005-05-05 Moritz Bunkus * mkvextract: bug fix: Use the native newline style when diff --git a/src/mmg/tab_global.cpp b/src/mmg/tab_global.cpp index 8e2b02bf6..7ecbdff86 100644 --- a/src/mmg/tab_global.cpp +++ b/src/mmg/tab_global.cpp @@ -368,10 +368,8 @@ tab_global::load(wxConfigBase *cfg) { cfg->Read(wxT("enable_splitting"), &ec); cb_split->SetValue(ec); cfg->Read(wxT("split_by_size"), &er); - if (er) - rb_split_by_size->SetValue(true); - else - rb_split_by_time->SetValue(true); + rb_split_by_time->SetValue(!er); + rb_split_by_size->SetValue(er); cfg->Read(wxT("split_after_bytes"), &s); cob_split_by_size->SetValue(s); cfg->Read(wxT("split_after_time"), &s);