diff options
author | Caolán McNamara <caolanm@redhat.com> | 2016-07-08 11:20:52 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2016-07-08 12:14:54 +0100 |
commit | b2c6c91391f01faa287de18e59e4762031ef6ddc (patch) | |
tree | dae1959b7f9d9c99f946bbfba3dc981ae76de0a4 /desktop/source/deployment/gui/dp_gui_theextmgr.cxx | |
parent | d44c1c2ca6072aae9ceea4be6796eeb15b7bed56 (diff) |
Related: rhbz#100713 move extensions restart to a better place
move it to when the dialog is closed rather than trying to
launch it as soon as any modifications take place because
those are happening during threaded code and the restart
is always cancelled by the dialog itself leading to repeated
restart dialogs
Now at least it doesn't crash, but if we open an oxt on the command
line, a restart will reopen it, which is probably not what we want.
Maybe this restart on an extension modification is a bad idea in
the first place.
Change-Id: Ib7d6179e6703ed3353fce44c3e54f5be1c1dfa68
Diffstat (limited to 'desktop/source/deployment/gui/dp_gui_theextmgr.cxx')
-rw-r--r-- | desktop/source/deployment/gui/dp_gui_theextmgr.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/desktop/source/deployment/gui/dp_gui_theextmgr.cxx b/desktop/source/deployment/gui/dp_gui_theextmgr.cxx index 1f30767cf419..3b1f0cb6dbc3 100644 --- a/desktop/source/deployment/gui/dp_gui_theextmgr.cxx +++ b/desktop/source/deployment/gui/dp_gui_theextmgr.cxx @@ -54,7 +54,8 @@ TheExtensionManager::TheExtensionManager( const uno::Reference< awt::XWindow > & m_xParent( xParent ), m_pExtMgrDialog( nullptr ), m_pUpdReqDialog( nullptr ), - m_pExecuteCmdQueue( nullptr ) + m_pExecuteCmdQueue( nullptr ), + m_bModified(false) { m_xExtensionManager = deployment::ExtensionManager::get( xContext ); m_xExtensionManager->addModifyListener( this ); @@ -468,6 +469,7 @@ void TheExtensionManager::notifyTermination( ::lang::EventObject const & rEvt ) void TheExtensionManager::modified( ::lang::EventObject const & /*rEvt*/ ) throw ( uno::RuntimeException, std::exception ) { + m_bModified = true; getDialogHelper()->prepareChecking(); createPackageList(); getDialogHelper()->checkEntries(); |