summaryrefslogtreecommitdiff
path: root/sw/source
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2016-09-16 22:45:33 +0200
committerMichael Stahl <mstahl@redhat.com>2016-09-20 14:30:18 +0200
commit984790f15d935f986fd0f5ed92f6a63c17eace35 (patch)
treefd1de8be7018994666fd8be57e56b96f0ef9a948 /sw/source
parent14bcb68cbbd23db8705d40dd116d3970a00b08e7 (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
Diffstat (limited to 'sw/source')
-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 6145cdecc722..c0214de39aec 100644
--- a/sw/source/ui/dbui/dbinsdlg.cxx
+++ b/sw/source/ui/dbui/dbinsdlg.cxx
@@ -363,6 +363,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 ));