summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2023-01-06 17:11:47 +0100
committerCaolán McNamara <caolanm@redhat.com>2023-01-07 16:03:10 +0000
commit4288b9a2cc5f70cebf6124db0b47277a4581e305 (patch)
treeaaf691cf8e92ad6a1e1d5bdb9c48d52923b298ed
parentRelated: rhbz#2158548 allow longer words for hunspell-ko (diff)
downloadcore-4288b9a2cc5f70cebf6124db0b47277a4581e305.tar.gz
core-4288b9a2cc5f70cebf6124db0b47277a4581e305.zip
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/+/145119 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r--dbaccess/source/ui/misc/WCPage.cxx4
1 files changed, 2 insertions, 2 deletions
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);