mirror of https://github.com/odrling/Aegisub
Prompt to update uses of the style when "Default" is renamed
As far as I can tell, Default was only excluded to avoid prompting when creating a new style, but whether or not a style is new is now an explicit parameter to the editor so it's unneeded. Originally committed to SVN as r6453.
This commit is contained in:
parent
fcffb010b9
commit
1075b71976
|
@ -374,7 +374,7 @@ void DialogStyleEditor::Apply(bool apply, bool close) {
|
|||
// Style name change
|
||||
bool did_rename = false;
|
||||
if (work->name != newStyleName) {
|
||||
if (!store && !is_new && work->name != "Default") {
|
||||
if (!store && !is_new) {
|
||||
// See if user wants to update style name through script
|
||||
int answer = wxMessageBox(_("Do you want to change all instances of this style in the script to this new name?"), _("Update script?"), wxYES_NO | wxCANCEL);
|
||||
|
||||
|
|
|
@ -105,7 +105,7 @@ static wxSizer *make_edit_buttons(wxWindow *parent, wxString move_label, wxButto
|
|||
}
|
||||
|
||||
DialogStyleManager::DialogStyleManager(agi::Context *context)
|
||||
: wxDialog (context->parent,-1,_("Styles Manager"),wxDefaultPosition,wxDefaultSize,wxDEFAULT_DIALOG_STYLE,"DialogStylesManager")
|
||||
: wxDialog(context->parent, -1, _("Styles Manager"))
|
||||
, c(context)
|
||||
{
|
||||
using std::tr1::bind;
|
||||
|
|
Loading…
Reference in New Issue