[Libreoffice-commits] core.git: sd/source sw/source

Marek Doležel marekdolezel at gmail.com
Mon Jul 6 07:43:46 PDT 2015


 sd/source/ui/dlg/SpellDialogChildWindow.cxx          |   16 ----------------
 sw/source/uibase/dialog/SwSpellDialogChildWindow.cxx |    4 ----
 2 files changed, 20 deletions(-)

New commits:
commit ae20b8147307de84318598be72977abc3f7bdda9
Author: Marek Doležel <marekdolezel at gmail.com>
Date:   Mon Jul 6 15:54:43 2015 +0200

    tdf79312: disable auto-close spelling dialog for sw, sd
    
    Change-Id: Ib7ea6624ac6b112779b0e64b08805538b8d6afff
    Reviewed-on: https://gerrit.libreoffice.org/16796
    Reviewed-by: Samuel Mehrbrodt <s.mehrbrodt at gmail.com>
    Tested-by: Samuel Mehrbrodt <s.mehrbrodt at gmail.com>

diff --git a/sd/source/ui/dlg/SpellDialogChildWindow.cxx b/sd/source/ui/dlg/SpellDialogChildWindow.cxx
index e52e3db..574ba97 100644
--- a/sd/source/ui/dlg/SpellDialogChildWindow.cxx
+++ b/sd/source/ui/dlg/SpellDialogChildWindow.cxx
@@ -19,9 +19,6 @@
 
 #include "SpellDialogChildWindow.hxx"
 #include <svx/svxids.hrc>
-#include <sfx2/app.hxx>
-#include <sfx2/bindings.hxx>
-#include <sfx2/dispatch.hxx>
 
 namespace sd{
 
@@ -77,19 +74,6 @@ svx::SpellPortions SpellDialogChildWindow::GetNextWrongSentence( bool /*bRecheck
         ProvideOutliner();
         aResult = mpSdOutliner->GetNextSpellSentence();
     }
-
-    // Close the spell check dialog when there are no more sentences to
-    // check.
-    if (aResult.empty())
-    {
-        SfxBoolItem aItem (SID_SPELL_DIALOG, false);
-        GetBindings().GetDispatcher()->Execute(
-            SID_SPELL_DIALOG,
-            SfxCallMode::ASYNCHRON,
-            &aItem,
-            0L);
-    }
-
     return aResult;
 }
 
diff --git a/sw/source/uibase/dialog/SwSpellDialogChildWindow.cxx b/sw/source/uibase/dialog/SwSpellDialogChildWindow.cxx
index e29cb22..b6b157d 100644
--- a/sw/source/uibase/dialog/SwSpellDialogChildWindow.cxx
+++ b/sw/source/uibase/dialog/SwSpellDialogChildWindow.cxx
@@ -426,13 +426,9 @@ The code below would only be part of the solution.
                 // take care that the now valid selection is stored
                 LoseFocus();
             }
-
-            // close the spelling dialog
-            GetBindings().GetDispatcher()->Execute(FN_SPELL_GRAMMAR_DIALOG, SfxCallMode::ASYNCHRON);
         }
     }
     return aRet;
-
 }
 
 void SwSpellDialogChildWindow::ApplyChangedSentence(const svx::SpellPortions& rChanged, bool bRecheck)


More information about the Libreoffice-commits mailing list