https://bugs.documentfoundation.org/show_bug.cgi?id=166541

            Bug ID: 166541
           Summary: Welcome dialog: Next closes immediately (gtk3)
           Product: LibreOffice
           Version: unspecified
          Hardware: All
                OS: Linux (All)
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: UI
          Assignee: [email protected]
          Reporter: [email protected]

Michael Weghorn:

When clicking the "Next" button, the dialog instantly closes with

    the gtk3 VCL plugin
    the qt6 VCL plugin with SAL_VCL_QT_USE_WELDED_WIDGETS=1 when the pending
change series up to https://gerrit.libreoffice.org/c/core/+/185216 is applied
(to support this dialog when using native Qt widgets)

This seems related to using the cancel button for something else ("Next") here.

See frames 2/3 in below backtrace (for the qt6 case) where clicking the
"Cancel" button results in the dialog getting closed:

1   QtInstanceDialog::response                                                 
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
                                                                             
QtInstanceDialog.cxx       110  0x7f7d6a63d3eb 
2   SfxTabDialogController::CancelHdl                                          
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
                                                                             
tabdlg.cxx                 408  0x7f7d781c2fa8 
3   SfxTabDialogController::LinkStubCancelHdl                                  
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
                                                                             
tabdlg.cxx                 406  0x7f7d781c280d 
4   Link<weld::Button&, void>::Call                                            
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
                                                                             
link.hxx                   105  0x7f7d6a62cb51 
5   weld::Button::signal_clicked                                               
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
                                                                             
weld.hxx                   1558 0x7f7d6a62c96c 
6   QtInstanceButton::buttonClicked                                            
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
                                                                             
QtInstanceButton.cxx       109  0x7f7d6a62a3ad 
7   QtPrivate::FunctorCall<std::integer_sequence<unsigned long>,
QtPrivate::List<>, void, void (QtInstanceButton:: *)()>::call(void
(QtInstanceButton:: *)(), QtInstanceButton *, void *
*)::{lambda()#1}::operator()() const                                           
                                                                               
                                                                               
                                                                               
                                                     qobjectdefs_impl.h        
127  0x7f7d6a62cf71 
8   QtPrivate::FunctorCallBase::call_internal<void,
QtPrivate::FunctorCall<std::integer_sequence<unsigned long>, QtPrivate::List<>,
void, void (QtInstanceButton:: *)()>::call(void (QtInstanceButton:: *)(),
QtInstanceButton *, void * *)::{lambda()#1}>(void * *,
QtPrivate::FunctorCall<std::integer_sequence<unsigned long>, QtPrivate::List<>,
void, void (QtInstanceButton:: *)()>::call(void (QtInstanceButton:: *)(),
QtInstanceButton *, void * *)::{lambda()#1}&&)                                 
                                                              
qobjectdefs_impl.h         65   0x7f7d6a62cea9 
9   QtPrivate::FunctorCall<std::integer_sequence<unsigned long>,
QtPrivate::List<>, void, void (QtInstanceButton:: *)()>::call(void
(QtInstanceButton:: *)(), QtInstanceButton *, void * *)                        
                                                                               
                                                                               
                                                                               
                                                                               
                          qobjectdefs_impl.h         126  0x7f7d6a62cddb 
10  QtPrivate::FunctionPointer<void (QtInstanceButton::
*)()>::call<QtPrivate::List<>, void>(void (QtInstanceButton:: *)(),
QtInstanceButton *, void * *)                                                  
                                                                               
                                                                               
                                                                               
                                                                               
                                  qobjectdefs_impl.h         174 
0x7f7d6a62cd5d 
11  QtPrivate::QCallableObject<void (QtInstanceButton:: *)(),
QtPrivate::List<>, void>::impl(int, QtPrivate::QSlotObjectBase *, QObject *,
void * *, bool *)                                                              
                                                                               
                                                                               
                                                                               
                                                                               
                   qobjectdefs_impl.h         545  0x7f7d6a62cc86 
12  QtPrivate::QSlotObjectBase::call                                           
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
                                                                             
qobjectdefs_impl.h         461  0x7f7d695061d2 
13  doActivate<false>                                                          
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
                                                                             
qobject.cpp                4241 0x7f7d69729cd4 
14  QMetaObject::activate                                                      
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
                                                                             
qobject.cpp                4301 0x7f7d6971fec3 
15  QMetaObject::activate<void, bool>                                          
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
                                                                             
qobjectdefs.h              319  0x7f7d675d83eb 
16  QAbstractButton::clicked                                                   
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
                                                                             
moc_qabstractbutton.cpp    252  0x7f7d6782c8e2 
17  QAbstractButtonPrivate::emitClicked                                        
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
                                                                             
qabstractbutton.cpp        381  0x7f7d6782c7f7 
18  QAbstractButtonPrivate::click                                              
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
                                                                             
qabstractbutton.cpp        374  0x7f7d6782c64f 
19  QAbstractButton::mouseReleaseEvent                                         
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
                                                                             
qabstractbutton.cpp        976  0x7f7d6782daff                                 
                                                                               
                                                                               
                                                                               
                                                                               
                                                                               
                                                                          
[...]

See also SfxTabDialogController::SfxTabDialogController for where that handler
is connected:

m_xCancelBtn->connect_clicked(LINK(this, SfxTabDialogController, CancelHdl));

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to