Kaydet (Commit) 13df1b95 authored tarafından Petr Mladek's avatar Petr Mladek

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
üst 895c1bcc
...@@ -193,16 +193,12 @@ namespace dbaui ...@@ -193,16 +193,12 @@ namespace dbaui
{ {
initializeTypeList(); initializeTypeList();
const OUString eOldSelection = m_eCurrentSelection;
m_pDatasourceType->SelectEntry( getDatasourceName( _rSet ) ); m_pDatasourceType->SelectEntry( getDatasourceName( _rSet ) );
// notify our listener that our type selection has changed (if so) // notify our listener that our type selection has changed (if so)
if ( eOldSelection != m_eCurrentSelection ) // FIXME: how to detect that it did not changed? (fdo#62937)
{ setParentTitle( m_eCurrentSelection );
setParentTitle( m_eCurrentSelection ); onTypeSelected( m_eCurrentSelection );
onTypeSelected( m_eCurrentSelection );
}
// a special message for the current page state // a special message for the current page state
switchMessage( m_eCurrentSelection ); switchMessage( m_eCurrentSelection );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment