basctl/source/basicide/baside3.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 161d51704e2c76034b5cc1413ca99df45df81ea4
Author:     Samuel Mehrbrodt <[email protected]>
AuthorDate: Fri Apr 8 15:59:11 2022 +0200
Commit:     Christian Lohmaier <[email protected]>
CommitDate: Tue Apr 12 20:46:21 2022 +0200

    tdf#147876 Fix crash when cancelling Dialog import dlg
    
    Regression from 9a55b97e980bbf2a0ce12841f6168f1f7545ac96
    
    Change-Id: I3fc35981a0cb81e5b59236ec3b07450aec10541a
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132737
    Tested-by: Jenkins
    Reviewed-by: Samuel Mehrbrodt <[email protected]>
    (cherry picked from commit 618d40799d25474c48d984ce1d52b0f08f220958)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132855
    Reviewed-by: Christian Lohmaier <[email protected]>

diff --git a/basctl/source/basicide/baside3.cxx 
b/basctl/source/basicide/baside3.cxx
index 920e82da3d0a..7b7e5db43b89 100644
--- a/basctl/source/basicide/baside3.cxx
+++ b/basctl/source/basicide/baside3.cxx
@@ -851,7 +851,7 @@ bool implImportDialog(weld::Window* pWin, const 
ScriptDocument& rDocument, const
     xFP->appendFilter( IDEResId(RID_STR_FILTER_ALLFILES), FilterMask_All );
     xFP->setCurrentFilter( aDialogStr );
 
-    if( aDlg.Execute() != ERRCODE_NONE )
+    if( aDlg.Execute() == ERRCODE_NONE )
     {
         Sequence< OUString > aPaths = xFP->getSelectedFiles();
 

Reply via email to