Skip to content

Commit

Permalink
Added message to inform the user that QtCreator should be restarted w…
Browse files Browse the repository at this point in the history
…hen changing spellcheckers.

See issue #71
  • Loading branch information
CJCombrink committed Sep 6, 2017
1 parent 582309d commit 1795cdf
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions SpellCheckers/HunspellChecker/hunspelloptionswidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,9 @@ void HunspellOptionsWidget::applySettings()

void HunspellOptionsWidget::updateDictionary(const QString &dictionary)
{
if(dictionary != ui->lineEditDictionary->text()) {
emit optionsError(QLatin1String("Hunspell Spellchecker"), tr("Application restart needed for changes to take affect."));
}
ui->lineEditDictionary->setText(dictionary);
/* If the dictionary gets changed, and the user dictionary is empty
* Create a self generated user dictionary name derived from the
Expand All @@ -110,6 +113,9 @@ void HunspellOptionsWidget::updateDictionary(const QString &dictionary)

void HunspellOptionsWidget::updateUserDictionary(const QString &userDictionary)
{
if(userDictionary != ui->lineEditDictionary->text()) {
emit optionsError(QLatin1String("Hunspell Spellchecker"), tr("Application restart needed for changes to take affect."));
}
ui->lineEditUserDictionary->setText(userDictionary);
}
//--------------------------------------------------
Expand Down

0 comments on commit 1795cdf

Please sign in to comment.