dbaccess/source/ui/misc/WCPage.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 5effc24969e5f326ef094419631d14d4d3030ed6
Author:     Julien Nabet <serval2...@yahoo.fr>
AuthorDate: Fri Jan 6 17:11:47 2023 +0100
Commit:     Julien Nabet <serval2...@yahoo.fr>
CommitDate: Fri Jan 6 17:02:44 2023 +0000

    tdf#152900: "Create new field as primary key" disabled...
    
    when pasting data as new table
    
    Regression from 3f8e50f9b2fb35db190ce0204981f3f02d1d5ae6 (05/2021)
    "merge handlers into single toggle handler"
    
    Change-Id: I05376f288c1687978225bd98da21a5e21810292a
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145151
    Reviewed-by: Caolán McNamara <caol...@redhat.com>
    Tested-by: Jenkins
    Reviewed-by: Julien Nabet <serval2...@yahoo.fr>

diff --git a/dbaccess/source/ui/misc/WCPage.cxx 
b/dbaccess/source/ui/misc/WCPage.cxx
index 738c85124708..602edd2d6e24 100644
--- a/dbaccess/source/ui/misc/WCPage.cxx
+++ b/dbaccess/source/ui/misc/WCPage.cxx
@@ -106,8 +106,8 @@ IMPL_LINK(OCopyTable, RadioChangeHdl, weld::Toggleable&, 
rButton, void)
         SetAppendDataRadio();
         return;
     }
-    m_pParent->EnableNextButton(m_xRB_View->get_active());
-    bool bKey = m_bPKeyAllowed && m_xRB_View->get_active();
+    m_pParent->EnableNextButton(!m_xRB_View->get_active());
+    bool bKey = m_bPKeyAllowed && !m_xRB_View->get_active();
     m_xFT_KeyName->set_sensitive(bKey && m_xCB_PrimaryColumn->get_active());
     m_xEdKeyName->set_sensitive(bKey && m_xCB_PrimaryColumn->get_active());
     m_xCB_PrimaryColumn->set_sensitive(bKey);

Reply via email to