aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMemphiz <memphis@machzwo.de>2013-08-03 09:37:32 -0700
committerMemphiz <memphis@machzwo.de>2013-08-03 09:37:32 -0700
commit60965df94e27a9a34884bb679b857c2e5cd233fe (patch)
tree7e410a45f0edb45ece21ce1c4edf5f16218502f4
parent77295c64c27051a9e3496826f62cba4b138f32e2 (diff)
parent84a8264e2e66d292dd38ce75e8c0f4a418e412f1 (diff)
Merge pull request #3027 from Memphiz/fixautoclose
[guidialog] - fix autoclose
-rw-r--r--xbmc/guilib/GUIDialog.cpp33
1 files changed, 17 insertions, 16 deletions
diff --git a/xbmc/guilib/GUIDialog.cpp b/xbmc/guilib/GUIDialog.cpp
index 79434c8abe..83d3b3bfb4 100644
--- a/xbmc/guilib/GUIDialog.cpp
+++ b/xbmc/guilib/GUIDialog.cpp
@@ -142,6 +142,23 @@ void CGUIDialog::UpdateVisibility()
else
Close();
}
+
+ if (m_autoClosing)
+ { // check if our timer is running
+ if (!m_showStartTime)
+ {
+ if (HasProcessed()) // start timer
+ m_showStartTime = CTimeUtils::GetFrameTime();
+ }
+ else
+ {
+ if (m_showStartTime + m_showDuration < CTimeUtils::GetFrameTime() && !m_closing)
+ {
+ m_bAutoClosed = true;
+ Close();
+ }
+ }
+ }
}
void CGUIDialog::DoModal_Internal(int iWindowID /*= WINDOW_INVALID */, const CStdString &param /* = "" */)
@@ -230,22 +247,6 @@ void CGUIDialog::Show()
void CGUIDialog::FrameMove()
{
- if (m_autoClosing)
- { // check if our timer is running
- if (!m_showStartTime)
- {
- if (HasProcessed()) // start timer
- m_showStartTime = CTimeUtils::GetFrameTime();
- }
- else
- {
- if (m_showStartTime + m_showDuration < CTimeUtils::GetFrameTime() && !m_closing)
- {
- m_bAutoClosed = true;
- Close();
- }
- }
- }
CGUIWindow::FrameMove();
}