forked from mia/Aegisub
Fix wxGTK assertion failure
Originally committed to SVN as r5895.
This commit is contained in:
parent
563a544150
commit
7998677612
1 changed files with 2 additions and 2 deletions
|
@ -84,14 +84,14 @@ DialogSpellChecker::DialogSpellChecker(agi::Context *context)
|
||||||
// List of supported spellchecker languages
|
// List of supported spellchecker languages
|
||||||
{
|
{
|
||||||
if (!spellchecker.get()) {
|
if (!spellchecker.get()) {
|
||||||
wxMessageBox("No spellchecker available.", "Error", wxICON_ERROR);
|
wxMessageBox("No spellchecker available.", "Error", wxICON_ERROR | wxOK);
|
||||||
Destroy();
|
Destroy();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
dictionary_lang_codes = spellchecker->GetLanguageList();
|
dictionary_lang_codes = spellchecker->GetLanguageList();
|
||||||
if (dictionary_lang_codes.empty()) {
|
if (dictionary_lang_codes.empty()) {
|
||||||
wxMessageBox("No spellchecker dictionaries available.", "Error", wxICON_ERROR);
|
wxMessageBox("No spellchecker dictionaries available.", "Error", wxICON_ERROR | wxOK);
|
||||||
Destroy();
|
Destroy();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue