Skip to content
Snippets Groups Projects
Commit 0d0f1044 authored by Alexei Arabadji's avatar Alexei Arabadji
Browse files

moved to base class LLCallDialog method draw();

added check to draw LLCallDialog if floater has dock control;

--HG--
branch : product-engine
parent 8f81b5db
No related branches found
No related tags found
No related merge requests found
......@@ -1497,13 +1497,17 @@ LLCallDialog(payload)
}
}
void LLOutgoingCallDialog::draw()
void LLCallDialog::draw()
{
if (lifetimeHasExpired())
{
onLifetimeExpired();
}
LLDockableFloater::draw();
if (getDockControl() != NULL)
{
LLDockableFloater::draw();
}
}
bool LLOutgoingCallDialog::lifetimeHasExpired()
......@@ -1648,14 +1652,6 @@ LLIncomingCallDialog::LLIncomingCallDialog(const LLSD& payload) :
LLCallDialog(payload)
{
}
void LLIncomingCallDialog::draw()
{
if (lifetimeHasExpired())
{
onLifetimeExpired();
}
LLDockableFloater::draw();
}
bool LLIncomingCallDialog::lifetimeHasExpired()
{
......
......@@ -488,6 +488,9 @@ class LLCallDialog : public LLDockableFloater
virtual BOOL postBuild();
// check timer state
/*virtual*/ void draw();
protected:
// lifetime timer for a notification
LLTimer mLifetimeTimer;
......@@ -509,9 +512,6 @@ class LLIncomingCallDialog : public LLCallDialog
/*virtual*/ BOOL postBuild();
/*virtual*/ void onOpen(const LLSD& key);
// check timer state
/*virtual*/ void draw();
static void onAccept(void* user_data);
static void onReject(void* user_data);
static void onStartIM(void* user_data);
......@@ -533,9 +533,6 @@ class LLOutgoingCallDialog : public LLCallDialog
static void onCancel(void* user_data);
static const LLUUID OCD_KEY;
// check timer state
/*virtual*/ void draw();
private:
// hide all text boxes
void hideAllText();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment