From 37aaf05fc93be8647bd9c5e34edf21b33ca1ae47 Mon Sep 17 00:00:00 2001 From: Jan Sundermeyer Date: Fri, 10 Nov 2023 19:02:29 +0100 Subject: [PATCH] fix #3358 --- src/latexeditorview.h | 3 ++- src/texstudio.cpp | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) 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)