summaryrefslogtreecommitdiff
path: root/dbaccess
diff options
context:
space:
mode:
authorPetr Mladek <pmladek@suse.cz>2013-05-21 10:46:45 +0200
committerBosdonnat Cedric <cedric.bosdonnat@free.fr>2013-07-01 13:05:25 +0000
commit40d76398f2be1f6efb11f79865c3b8adc3186f24 (patch)
tree049d151f40c3b7d7d7a0fb657fcc5ed2f21010fe /dbaccess
parent3367c767fec1b02f4493490e1ef5b2929dfbbd46 (diff)
allow to create new database using the wizard again (fdo#62937)
To be honest, I do not userstand the code much. Julien pointed out that the setParentTitle and onTypeSelected were newer called. The condition looked like an optimisation and it helped to remove it. It would be great to put it back. It might be enough to hand the intial values. Change-Id: Id06cc9c63a9e578cb3c698c8526851fec71ef9da Reviewed-on: https://gerrit.libreoffice.org/4429 Reviewed-by: Bosdonnat Cedric <cedric.bosdonnat@free.fr> Tested-by: Bosdonnat Cedric <cedric.bosdonnat@free.fr>
Diffstat (limited to 'dbaccess')
-rw-r--r--dbaccess/source/ui/dlg/generalpage.cxx9
1 files changed, 3 insertions, 6 deletions
diff --git a/dbaccess/source/ui/dlg/generalpage.cxx b/dbaccess/source/ui/dlg/generalpage.cxx
index f6371552ffbc..354d3e947186 100644
--- a/dbaccess/source/ui/dlg/generalpage.cxx
+++ b/dbaccess/source/ui/dlg/generalpage.cxx
@@ -357,7 +357,6 @@ namespace dbaui
sConnectURL = pUrlItem->GetValue();
}
- ::rtl::OUString eOldSelection = m_eCurrentSelection;
m_eNotSupportedKnownType = ::dbaccess::DST_UNKNOWN;
implSetCurrentType( ::rtl::OUString() );
@@ -388,11 +387,9 @@ namespace dbaui
m_pDatasourceType->SelectEntry(sDisplayName);
// notify our listener that our type selection has changed (if so)
- if ( eOldSelection != m_eCurrentSelection )
- {
- setParentTitle(m_eCurrentSelection);
- onTypeSelected(m_eCurrentSelection);
- }
+ // FIXME: how to detect that it did not changed? (fdo#62937)
+ setParentTitle(m_eCurrentSelection);
+ onTypeSelected(m_eCurrentSelection);
// a special message for the current page state
switchMessage(m_eCurrentSelection);