summaryrefslogtreecommitdiff
path: root/sc/source/ui/miscdlgs/dataproviderdlg.cxx
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2017-08-10 09:35:44 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2017-08-10 20:39:39 +0200
commit0814bf35b2287e448e350c15d60d0400fd9e224c (patch)
treea73c9ab49f1429785a47453cf2c0ef3112797440 /sc/source/ui/miscdlgs/dataproviderdlg.cxx
parent4bd3b786b2d53fd08767e4efaa7abe9803610aae (diff)
external data: fix a few issues with the dialog
Change-Id: I16358e785d4ebd6375c98b84f4a31d3fa604d734 Reviewed-on: https://gerrit.libreoffice.org/40965 Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com> Tested-by: Jenkins <ci@libreoffice.org>
Diffstat (limited to 'sc/source/ui/miscdlgs/dataproviderdlg.cxx')
-rw-r--r--sc/source/ui/miscdlgs/dataproviderdlg.cxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/sc/source/ui/miscdlgs/dataproviderdlg.cxx b/sc/source/ui/miscdlgs/dataproviderdlg.cxx
index 8c20f8fff4a6..c583df378300 100644
--- a/sc/source/ui/miscdlgs/dataproviderdlg.cxx
+++ b/sc/source/ui/miscdlgs/dataproviderdlg.cxx
@@ -29,7 +29,10 @@ DataProviderDlg::DataProviderDlg(ScDocShell *pDocShell, vcl::Window* pParent)
get(m_pCBData, "combobox_db");
m_pCbUrl->SetSelectHdl( LINK( this, DataProviderDlg, UpdateComboBoxHdl ) );
+ m_pCbUrl->SetModifyHdl(LINK(this, DataProviderDlg, EditHdl));
m_pBtnBrowse->SetClickHdl( LINK( this, DataProviderDlg, BrowseHdl ) );
+ Init();
+ m_pCBData->Resize();
UpdateEnable();
}
@@ -67,6 +70,11 @@ IMPL_LINK_NOARG(DataProviderDlg, UpdateComboBoxHdl, ComboBox&, void)
UpdateEnable();
}
+IMPL_LINK_NOARG(DataProviderDlg, EditHdl, Edit&, void)
+{
+ UpdateEnable();
+}
+
void DataProviderDlg::UpdateEnable()
{
bool bOk = !m_pCbUrl->GetURL().isEmpty();