summaryrefslogtreecommitdiff
path: root/desktop/source/deployment/gui/dp_gui_dialog2.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'desktop/source/deployment/gui/dp_gui_dialog2.cxx')
-rw-r--r--desktop/source/deployment/gui/dp_gui_dialog2.cxx14
1 files changed, 13 insertions, 1 deletions
diff --git a/desktop/source/deployment/gui/dp_gui_dialog2.cxx b/desktop/source/deployment/gui/dp_gui_dialog2.cxx
index 553f1f5c1e88..c7530159e248 100644
--- a/desktop/source/deployment/gui/dp_gui_dialog2.cxx
+++ b/desktop/source/deployment/gui/dp_gui_dialog2.cxx
@@ -225,8 +225,11 @@ void ExtBoxWithBtns_Impl::RecalcAll()
}
else
{
+ m_pOptionsBtn->Disable();
m_pOptionsBtn->Hide();
+ m_pEnableBtn->Disable();
m_pEnableBtn->Hide();
+ m_pRemoveBtn->Disable();
m_pRemoveBtn->Hide();
}
@@ -280,7 +283,10 @@ void ExtBoxWithBtns_Impl::SetButtonStatus(const TEntry_Impl& rEntry)
if ( ( !rEntry->m_bUser || ( rEntry->m_eState == NOT_AVAILABLE ) || rEntry->m_bMissingDeps )
&& !rEntry->m_bMissingLic )
+ {
+ m_pEnableBtn->Disable();
m_pEnableBtn->Hide();
+ }
else
{
m_pEnableBtn->Enable( !rEntry->m_bLocked );
@@ -290,12 +296,15 @@ void ExtBoxWithBtns_Impl::SetButtonStatus(const TEntry_Impl& rEntry)
if ( rEntry->m_bHasOptions && bShowOptionBtn )
{
- m_pOptionsBtn->Enable( rEntry->m_bHasOptions );
+ m_pOptionsBtn->Enable();
m_pOptionsBtn->Show();
rEntry->m_bHasButtons = true;
}
else
+ {
+ m_pOptionsBtn->Disable();
m_pOptionsBtn->Hide();
+ }
if ( rEntry->m_bUser || rEntry->m_bShared )
{
@@ -304,7 +313,10 @@ void ExtBoxWithBtns_Impl::SetButtonStatus(const TEntry_Impl& rEntry)
rEntry->m_bHasButtons = true;
}
else
+ {
+ m_pRemoveBtn->Disable();
m_pRemoveBtn->Hide();
+ }
}