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

List:       kde-commits
Subject:    kdewebdev/quanta/utility
From:       Andras Mantia <amantia () kde ! org>
Date:       2004-07-15 17:50:45
Message-ID: 20040715175045.65B1416AFD () office ! kde ! org
[Download RAW message or body]

CVS commit by amantia: 

Don't annoy the user with the "Unsupported event" dialog for each unconfigured event.

CCMAIL: quanta-devel@kde.org


  M +3 -2      qpevents.cpp   1.16


--- kdewebdev/quanta/utility/qpevents.cpp  #1.15:1.16
@@ -195,6 +195,7 @@ void QPEvents::slotEventHappened(const Q
         handleEvent(ev);
       }
-  } else
-    KMessageBox::sorry(0L, i18n("<qt>Unsupported event <b>%1</b>.</qt>"), \
i18n("Event Handling Error")); +  }
+  if (!m_eventNames.contains(name))
+    KMessageBox::sorry(0L, i18n("<qt>Unsupported event <b>%1</b>.</qt>").arg(name), \
i18n("Event Handling Error"));  }
 


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

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