summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPetr Mladek <pmladek@suse.cz>2013-05-21 10:46:45 +0200
committerPetr Mladek <pmladek@suse.cz>2013-05-21 10:59:11 +0200
commit13df1b95e83a46e847311b49d4c14260cac682af (patch)
tree91a2f46bd04ac8bb4d9835ef03bdce1ca3c74059
parent895c1bcc811813ba32d865974b7172cb288074dc (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
-rw-r--r--dbaccess/source/ui/dlg/generalpage.cxx10
1 files changed, 3 insertions, 7 deletions
diff --git a/dbaccess/source/ui/dlg/generalpage.cxx b/dbaccess/source/ui/dlg/generalpage.cxx
index 6e72732adebf..a88147217cfe 100644
--- a/dbaccess/source/ui/dlg/generalpage.cxx
+++ b/dbaccess/source/ui/dlg/generalpage.cxx
@@ -193,16 +193,12 @@ namespace dbaui
{
initializeTypeList();
- const OUString eOldSelection = m_eCurrentSelection;
-
m_pDatasourceType->SelectEntry( getDatasourceName( _rSet ) );
// 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 );