summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2016-09-16 22:45:33 +0200
committerCaolán McNamara <caolanm@redhat.com>2016-09-21 09:30:48 +0000
commitc7a18b2edcaeca80bac512d3018ed9cae1eb0caf (patch)
tree99168a1e2f50b1315f6e1b12fc701857e743d185
parent8a2781dde395fc45b943daf5e238ba98276bd405 (diff)
tdf#101164 sw: Insert Database Columns dialog: ensure one of ...
... the radio buttons is active by default, in case there's no configuration to read the state from yet. Change-Id: If1c0462eb5cb9ea5177f1d5a8953b34fabd0829c (cherry picked from commit 984790f15d935f986fd0f5ed92f6a63c17eace35) Reviewed-on: https://gerrit.libreoffice.org/29089 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r--sw/source/ui/dbui/dbinsdlg.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/sw/source/ui/dbui/dbinsdlg.cxx b/sw/source/ui/dbui/dbinsdlg.cxx
index c1babe196bbf..2ccd09610689 100644
--- a/sw/source/ui/dbui/dbinsdlg.cxx
+++ b/sw/source/ui/dbui/dbinsdlg.cxx
@@ -362,6 +362,10 @@ SwInsertDBColAutoPilot::SwInsertDBColAutoPilot( SwView& rView,
m_pIbDbcolAllFrom->Enable( false );
}
+ // by default, select header button
+ m_pRbHeadlColnms->Check(true);
+ m_pRbHeadlEmpty->Check(false);
+
m_pRbAsTable->SetClickHdl( LINK(this, SwInsertDBColAutoPilot, PageHdl ));
m_pRbAsField->SetClickHdl( LINK(this, SwInsertDBColAutoPilot, PageHdl ));
m_pRbAsText->SetClickHdl( LINK(this, SwInsertDBColAutoPilot, PageHdl ));