[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [plasmate] /: Timeline dockwidget needs one click instead of two in
From:       Giorgos Tsiapaliwkas <terietor () gmail ! com>
Date:       2011-07-22 11:54:12
Message-ID: 20110722115412.5F78DA60A6 () git ! kde ! org
[Download RAW message or body]

Git commit eac3ca7d0acd5d45c44dd2a208925dda99b645db by Giorgos Tsiapaliwkas.
Committed on 22/07/2011 at 03:54.
Pushed by tsiapaliwkas into branch 'master'.

Timeline dockwidget needs one click instead of two in order to open

M  +2    -2    mainwindow.cpp

http://commits.kde.org/plasmate/eac3ca7d0acd5d45c44dd2a208925dda99b645db

diff --git a/mainwindow.cpp b/mainwindow.cpp
index d8d016e..3dbdefc 100644
--- a/mainwindow.cpp
+++ b/mainwindow.cpp
@@ -263,9 +263,9 @@ void MainWindow::toggleTimeLine()
 {
     if (!m_timeLine) {
         initTimeLine();
+    } else {
+        m_timeLine->setVisible(!m_timeLine->isVisible());
     }
-
-    m_timeLine->setVisible(!m_timeLine->isVisible());
 }
 
 void MainWindow::initTimeLine()

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic