summary refs log tree commit diff
path: root/src/UserInfoWidget.cc
diff options
context:
space:
mode:
authorKonstantinos Sideris <sideris.konstantin@gmail.com>2017-09-30 17:05:05 +0300
committerKonstantinos Sideris <sideris.konstantin@gmail.com>2017-09-30 17:05:05 +0300
commit41a85832b3a2d6ebed0b638027999afcc2f72582 (patch)
tree925266558c64f4a9b8d29d9f5e75b39a52ba650e /src/UserInfoWidget.cc
parentRefactor the welcome page (diff)
downloadnheko-41a85832b3a2d6ebed0b638027999afcc2f72582.tar.xz
Remove unnecessary animations
Diffstat (limited to 'src/UserInfoWidget.cc')
-rw-r--r--src/UserInfoWidget.cc8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/UserInfoWidget.cc b/src/UserInfoWidget.cc
index b5926c58..463b3c6c 100644
--- a/src/UserInfoWidget.cc
+++ b/src/UserInfoWidget.cc
@@ -103,7 +103,7 @@ UserInfoWidget::UserInfoWidget(QWidget *parent)
 
                 if (logoutModal_ == nullptr) {
                         logoutModal_ = new OverlayModal(MainWindow::instance(), logoutDialog_);
-                        logoutModal_->setDuration(100);
+                        logoutModal_->setDuration(0);
                         logoutModal_->setColor(QColor(55, 55, 55, 170));
                 }
 
@@ -116,10 +116,8 @@ UserInfoWidget::closeLogoutDialog(bool isLoggingOut)
 {
         logoutModal_->fadeOut();
 
-        if (isLoggingOut) {
-                // Waiting for the modal to fade out.
-                QTimer::singleShot(100, this, [=]() { emit logout(); });
-        }
+        if (isLoggingOut)
+                emit logout();
 }
 
 UserInfoWidget::~UserInfoWidget()