Author: mir3x
Date: Sun Oct 23 19:46:35 2016
New Revision: 34218

URL: http://svn.gna.org/viewcvs/freeciv?rev=34218&view=rev
Log:
Qt client - progress bar might show extra frame when acquired focus

See bug #25202

Modified:
    trunk/client/gui-qt/citydlg.cpp

Modified: trunk/client/gui-qt/citydlg.cpp
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/client/gui-qt/citydlg.cpp?rev=34218&r1=34217&r2=34218&view=diff
==============================================================================
--- trunk/client/gui-qt/citydlg.cpp     (original)
+++ trunk/client/gui-qt/citydlg.cpp     Sun Oct 23 19:46:35 2016
@@ -88,11 +88,9 @@
 ****************************************************************************/
 void progress_bar::timerEvent(QTimerEvent *event)
 {
-  m_animate_step = m_timer.elapsed() / (50);
-
-  if ((0 == m_animate_step % 2 &&
-       value() != minimum() &&
-       value() < maximum()) || (0 == minimum() && 0 == maximum())) {
+  if ((value() != minimum() && value() < maximum())
+      || (0 == minimum() && 0 == maximum())) {
+    m_animate_step = m_timer.elapsed() / 50;
     update();
   }
 }


_______________________________________________
Freeciv-commits mailing list
Freeciv-commits@gna.org
https://mail.gna.org/listinfo/freeciv-commits

Reply via email to