diff options
Diffstat (limited to 'extensions')
-rw-r--r-- | extensions/source/propctrlr/formlinkdialog.cxx | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/extensions/source/propctrlr/formlinkdialog.cxx b/extensions/source/propctrlr/formlinkdialog.cxx index b9ecb6d92fc7..e52ab453d168 100644 --- a/extensions/source/propctrlr/formlinkdialog.cxx +++ b/extensions/source/propctrlr/formlinkdialog.cxx @@ -588,16 +588,11 @@ namespace pcr try { - bool bEnable = true; - // only show the button when both forms are based on the same data source - if ( bEnable ) - { - OUString sMasterDS, sDetailDS; - xMasterFormProps->getPropertyValue( PROPERTY_DATASOURCE ) >>= sMasterDS; - xDetailFormProps->getPropertyValue( PROPERTY_DATASOURCE ) >>= sDetailDS; - bEnable = ( sMasterDS == sDetailDS ); - } + OUString sMasterDS, sDetailDS; + xMasterFormProps->getPropertyValue( PROPERTY_DATASOURCE ) >>= sMasterDS; + xDetailFormProps->getPropertyValue( PROPERTY_DATASOURCE ) >>= sDetailDS; + bool bEnable = ( sMasterDS == sDetailDS ); // only show the button when the connection supports relations if ( bEnable ) |