diff --git a/src/latexeditorview.h b/src/latexeditorview.h index 87c61bc234..88dc882428 100644 --- a/src/latexeditorview.h +++ b/src/latexeditorview.h @@ -241,11 +241,12 @@ private slots: void lineMarkToolTip(int line, int mark); void triggeredThesaurus(); void reloadSpeller(); - void changeSpellingDict(const QString &name); void copyImageFromAction(); void saveImageFromAction(); public slots: + void changeSpellingDict(const QString &name); + void cleanBib(); void jumpChangePositionBackward(); diff --git a/src/texstudio.cpp b/src/texstudio.cpp index 2f13f1d0bf..e4e11d9551 100644 --- a/src/texstudio.cpp +++ b/src/texstudio.cpp @@ -2241,6 +2241,9 @@ LatexEditorView *Texstudio::load(const QString &f , bool asProject, bool recheck configureNewEditorViewEnd(edView, true, false); + QString spellingDictName=doc->spellingDictName(); + if(!spellingDictName.isEmpty()) edView->changeSpellingDict(spellingDictName); + documents.addDocument(doc, false); if(unmodified)