Kaydet (Commit) d628e404 authored tarafından Caolán McNamara's avatar Caolán McNamara

Resolves: tdf#121487 ::Execute called on "modeless" dialog

that isn't really modeless

Change-Id: I9a092622dc45a9a047ef805ed1e41fd9f036a7dc
Reviewed-on: https://gerrit.libreoffice.org/63559
Tested-by: Jenkins
Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst 9e7bf5d3
...@@ -142,7 +142,7 @@ Size CuiCustomMultilineEdit::GetOptimalSize() const ...@@ -142,7 +142,7 @@ Size CuiCustomMultilineEdit::GetOptimalSize() const
} }
CuiAboutConfigTabPage::CuiAboutConfigTabPage( vcl::Window* pParent/*, const SfxItemSet& rItemSet*/ ) : CuiAboutConfigTabPage::CuiAboutConfigTabPage( vcl::Window* pParent/*, const SfxItemSet& rItemSet*/ ) :
ModelessDialog( pParent, "AboutConfig", "cui/ui/aboutconfigdialog.ui"), ModalDialog( pParent, "AboutConfig", "cui/ui/aboutconfigdialog.ui"),
m_pPrefCtrl( get<SvSimpleTableContainer>("preferences") ), m_pPrefCtrl( get<SvSimpleTableContainer>("preferences") ),
m_pResetBtn( get<PushButton>("reset") ), m_pResetBtn( get<PushButton>("reset") ),
m_pEditBtn( get<PushButton>("edit") ), m_pEditBtn( get<PushButton>("edit") ),
...@@ -195,7 +195,7 @@ void CuiAboutConfigTabPage::dispose() ...@@ -195,7 +195,7 @@ void CuiAboutConfigTabPage::dispose()
m_pEditBtn.clear(); m_pEditBtn.clear();
m_pSearchBtn.clear(); m_pSearchBtn.clear();
m_pSearchEdit.clear(); m_pSearchEdit.clear();
ModelessDialog::dispose(); ModalDialog::dispose();
} }
void CuiAboutConfigTabPage::InsertEntry(const OUString& rPropertyPath, const OUString& rProp, const OUString& rStatus, void CuiAboutConfigTabPage::InsertEntry(const OUString& rPropertyPath, const OUString& rProp, const OUString& rStatus,
......
...@@ -39,7 +39,7 @@ public: ...@@ -39,7 +39,7 @@ public:
virtual Size GetOptimalSize() const override; virtual Size GetOptimalSize() const override;
}; };
class CuiAboutConfigTabPage : public ModelessDialog class CuiAboutConfigTabPage : public ModalDialog
{ {
private: private:
VclPtr<SvSimpleTableContainer> m_pPrefCtrl; VclPtr<SvSimpleTableContainer> m_pPrefCtrl;
......
...@@ -374,7 +374,7 @@ IMPL_LINK( SvxJavaOptionsPage, DialogClosedHdl, DialogClosedEvent*, pEvt, void ) ...@@ -374,7 +374,7 @@ IMPL_LINK( SvxJavaOptionsPage, DialogClosedHdl, DialogClosedEvent*, pEvt, void )
IMPL_LINK_NOARG( SvxJavaOptionsPage, ExpertConfigHdl_Impl, Button*, void ) IMPL_LINK_NOARG( SvxJavaOptionsPage, ExpertConfigHdl_Impl, Button*, void )
{ {
ScopedVclPtrInstance< CuiAboutConfigTabPage > pExpertConfigDlg(this); ScopedVclPtrInstance< CuiAboutConfigTabPage > pExpertConfigDlg(GetTabDialog());
pExpertConfigDlg->Reset();//initialize and reset function pExpertConfigDlg->Reset();//initialize and reset function
if( RET_OK == pExpertConfigDlg->Execute() ) if( RET_OK == pExpertConfigDlg->Execute() )
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
<property name="can_focus">False</property> <property name="can_focus">False</property>
<property name="border_width">6</property> <property name="border_width">6</property>
<property name="title" translatable="yes" context="aboutconfigdialog|AboutConfig">Expert Configuration</property> <property name="title" translatable="yes" context="aboutconfigdialog|AboutConfig">Expert Configuration</property>
<property name="modal">True</property>
<property name="type_hint">normal</property> <property name="type_hint">normal</property>
<property name="skip_taskbar_hint">True</property> <property name="skip_taskbar_hint">True</property>
<child internal-child="vbox"> <child internal-child="vbox">
......
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