From 400b8252e922d2db285a57a094b1d5dce7df1a51 Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Thu, 22 Dec 2011 21:25:00 +0000 Subject: [PATCH] Don't block loading styles from scripts with only a Default style Originally committed to SVN as r6099. --- aegisub/src/dialog_style_manager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aegisub/src/dialog_style_manager.cpp b/aegisub/src/dialog_style_manager.cpp index 904eb4bb8..4ff2da6cb 100644 --- a/aegisub/src/dialog_style_manager.cpp +++ b/aegisub/src/dialog_style_manager.cpp @@ -789,7 +789,7 @@ void DialogStyleManager::OnCurrentImport(wxCommandEvent &) { // Get styles wxArrayString styles = temp.GetStyles(); - if (styles.Count() == 0 || (styles.Count() == 1 && styles[0] == "Default")) { + if (styles.empty()) { wxMessageBox(_("The selected file has no available styles."),_("Error Importing Styles"),wxOK); return; }