diff host/ImageAction.cpp @ 13:47b0a143db39

...
author cannam
date Tue, 12 Dec 2006 10:38:55 +0000
parents c1669af82d6e
children
line wrap: on
line diff
--- a/host/ImageAction.cpp	Fri Dec 08 18:18:28 2006 +0000
+++ b/host/ImageAction.cpp	Tue Dec 12 10:38:55 2006 +0000
@@ -5,6 +5,9 @@
 
 #include <iostream>
 
+QString
+ImageAction::m_currentImage;
+
 ImageAction::ImageAction(QString imageName) :
     m_imageName(imageName)
 {
@@ -25,8 +28,10 @@
 void
 ImageAction::fire()
 {
+    if (m_currentImage == m_imageName) return;
     std::cerr << "ImageAction(\"" << getName().toStdString() << "\")::fire"
               << std::endl;
+    m_currentImage = m_imageName;
     emit showImage(m_imageName);
 }