summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <[email protected]>2017-04-05 07:36:55 +0200
committerPali Roh├ír <[email protected]>2017-12-22 09:10:28 +0100
commit5d817600558964d2a3e8be12eae2abfd5caa7a05 (patch)
treecb28b36f65eb4104089e5dba925023b3273c43d7
parentb086f5660f060c26c97ecaedde1080af39b76d8f (diff)
Try to fix warning
-rw-r--r--kopete/identity/identitystatuswidget.cpp3
-rw-r--r--kopete/infoeventwidget.cpp3
-rw-r--r--libkopete/ui/collapsiblewidget.cpp4
3 files changed, 10 insertions, 0 deletions
diff --git a/kopete/identity/identitystatuswidget.cpp b/kopete/identity/identitystatuswidget.cpp
index 6689b75..6a92153 100644
--- a/kopete/identity/identitystatuswidget.cpp
+++ b/kopete/identity/identitystatuswidget.cpp
@@ -129,6 +129,9 @@ Kopete::Identity *IdentityStatusWidget::identity() const
void IdentityStatusWidget::setVisible(bool visible)
{
+ if (d->timeline->state() == QTimeLine::Running) {
+ return;
+ }
if (visible == isVisible()) {
return;
}
diff --git a/kopete/infoeventwidget.cpp b/kopete/infoeventwidget.cpp
index f7695e9..d70d953 100644
--- a/kopete/infoeventwidget.cpp
+++ b/kopete/infoeventwidget.cpp
@@ -74,6 +74,9 @@ InfoEventWidget::~InfoEventWidget()
void InfoEventWidget::setVisible(bool visible)
{
+ if (d->timeline->state() == QTimeLine::Running) {
+ return;
+ }
if (visible == isVisible()) {
return;
}
diff --git a/libkopete/ui/collapsiblewidget.cpp b/libkopete/ui/collapsiblewidget.cpp
index c258649..922afcc 100644
--- a/libkopete/ui/collapsiblewidget.cpp
+++ b/libkopete/ui/collapsiblewidget.cpp
@@ -241,6 +241,10 @@ QString CollapsibleWidget::caption() const
void CollapsibleWidget::setExpanded(bool expanded)
{
+ if (d->timeline->state() == QTimeLine::Running) {
+ return;
+ }
+
if (!d->innerWidget) {
return;
}