cui/uiconfig/ui/querysetinsmodedialog.ui |    3 +--
 sw/source/uibase/wrtsh/select.cxx        |    2 +-
 2 files changed, 2 insertions(+), 3 deletions(-)

New commits:
commit 5a9c035486a1b2d0796656e33a659718d0b21c09
Author:     Heiko Tietze <tietze.he...@gmail.com>
AuthorDate: Fri Sep 29 11:53:37 2023 +0200
Commit:     Heiko Tietze <heiko.tie...@documentfoundation.org>
CommitDate: Fri Sep 29 13:18:53 2023 +0200

    Related tdf#155561 - Query logic inverted
    
    "Don't ask again" was working like "Show this dialog" or
    "Ask for confirmation" before
    Decided against a renaming since we use the "Do not again"
    text on other places and it is more common in this type of
    confirmation dialog than the positive (and checked) form
    
    Change-Id: I705376d11bc662b157d38bf7a89fb8db13819e6d
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157404
    Tested-by: Jenkins
    Reviewed-by: Heiko Tietze <heiko.tie...@documentfoundation.org>

diff --git a/cui/uiconfig/ui/querysetinsmodedialog.ui 
b/cui/uiconfig/ui/querysetinsmodedialog.ui
index a21659afae5e..761111162dc2 100644
--- a/cui/uiconfig/ui/querysetinsmodedialog.ui
+++ b/cui/uiconfig/ui/querysetinsmodedialog.ui
@@ -23,12 +23,11 @@
             <property name="layout-style">end</property>
             <child>
               <object class="GtkCheckButton" id="cbDontShowAgain">
-                <property name="label" translatable="yes" 
context="SetInsModeDialog|Checkbox">Don't show again</property>
+                <property name="label" translatable="yes" 
context="SetInsModeDialog|Checkbox">Do not show again</property>
                 <property name="visible">True</property>
                 <property name="can-focus">True</property>
                 <property name="receives-default">False</property>
                 <property name="hexpand">True</property>
-                <property name="active">True</property>
                 <property name="draw-indicator">True</property>
               </object>
               <packing>
diff --git a/sw/source/uibase/wrtsh/select.cxx 
b/sw/source/uibase/wrtsh/select.cxx
index ebec0dbfed2a..fe369d0f2091 100644
--- a/sw/source/uibase/wrtsh/select.cxx
+++ b/sw/source/uibase/wrtsh/select.cxx
@@ -697,7 +697,7 @@ void SwWrtShell::SetInsMode( bool bOn )
 
         std::shared_ptr<comphelper::ConfigurationChanges> xChanges(
             comphelper::ConfigurationChanges::create());
-        
officecfg::Office::Common::Misc::QuerySetInsMode::set(xCheckBox->get_active(), 
xChanges);
+        
officecfg::Office::Common::Misc::QuerySetInsMode::set(!xCheckBox->get_active(), 
xChanges);
         xChanges->commit();
 
         if ( nResult == static_cast<int>(RET_NO) )

Reply via email to