Fix bad option names
Originally committed to SVN as r4591.
This commit is contained in:
parent
3b1189a8b2
commit
d8e8f9eb68
1 changed files with 4 additions and 4 deletions
|
@ -155,7 +155,7 @@ DialogShiftTimes::DialogShiftTimes (wxWindow *parent,SubtitlesGrid *_grid)
|
||||||
CenterOnParent();
|
CenterOnParent();
|
||||||
|
|
||||||
// Load values from options
|
// Load values from options
|
||||||
if (!OPT_GET("Tools/Shift Times/ByTime")->GetBool()) {
|
if (!OPT_GET("Tool/Shift Times/ByTime")->GetBool()) {
|
||||||
if (RadioFrames->IsEnabled()) {
|
if (RadioFrames->IsEnabled()) {
|
||||||
RadioFrames->SetValue(true);
|
RadioFrames->SetValue(true);
|
||||||
ShiftFrame->Enable(true);
|
ShiftFrame->Enable(true);
|
||||||
|
@ -168,7 +168,7 @@ DialogShiftTimes::DialogShiftTimes (wxWindow *parent,SubtitlesGrid *_grid)
|
||||||
}
|
}
|
||||||
TimesChoice->SetSelection(OPT_GET("Tool/Shift Times/Type")->GetInt());
|
TimesChoice->SetSelection(OPT_GET("Tool/Shift Times/Type")->GetInt());
|
||||||
SelChoice->SetSelection(OPT_GET("Tool/Shift Times/Affect")->GetInt());
|
SelChoice->SetSelection(OPT_GET("Tool/Shift Times/Affect")->GetInt());
|
||||||
if (OPT_GET("Tools/Shift Times/Direction")->GetBool()) DirectionBackward->SetValue(true);
|
if (OPT_GET("Tool/Shift Times/Direction")->GetBool()) DirectionBackward->SetValue(true);
|
||||||
|
|
||||||
// Has selection?
|
// Has selection?
|
||||||
wxArrayInt sel = grid->GetSelection();
|
wxArrayInt sel = grid->GetSelection();
|
||||||
|
@ -305,11 +305,11 @@ void DialogShiftTimes::OnOK(wxCommandEvent &event) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Store modifications
|
// Store modifications
|
||||||
OPT_SET("Tools/Shift Times/ByTime")->SetBool(byTime);
|
OPT_SET("Tool/Shift Times/ByTime")->SetBool(byTime);
|
||||||
OPT_SET("Tool/Shift Times/Type")->SetInt(type);
|
OPT_SET("Tool/Shift Times/Type")->SetInt(type);
|
||||||
OPT_SET("Tool/Shift Times/Length")->SetInt(len);
|
OPT_SET("Tool/Shift Times/Length")->SetInt(len);
|
||||||
OPT_SET("Tool/Shift Times/Affect")->SetInt(affect);
|
OPT_SET("Tool/Shift Times/Affect")->SetInt(affect);
|
||||||
OPT_SET("Tools/Shift Times/Direction")->SetBool(backward);
|
OPT_SET("Tool/Shift Times/Direction")->SetBool(backward);
|
||||||
|
|
||||||
// End dialog
|
// End dialog
|
||||||
grid->ass->FlagAsModified(_("shifting"));
|
grid->ass->FlagAsModified(_("shifting"));
|
||||||
|
|
Loading…
Reference in a new issue