[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-14 19:29:17
Message-ID: 20040714192917.A361B16B05 () office ! kde ! org
[Download RAW message or body]

CVS commit by amantia: 

One more error message.


  M +4 -2      qpevents.cpp   1.13


--- kdewebdev/quanta/utility/qpevents.cpp  #1.12:1.13
@@ -66,5 +66,6 @@ void QPEvents::slotEventHappened(const Q
 {
   EventActions *events = Project::ref()->events();
-  if (events && events->contains(name))
+  if (!events) return;
+  if (events->contains(name))
   {
     EventAction ev = (*events)[name];
@@ -195,5 +196,6 @@ void QPEvents::slotEventHappened(const Q
         handleEvent(ev);
       }
-  }
+  } else
+    KMessageBox::sorry(0L, i18n("<qt>Unsupported event <b>%1</b>.</qt>"), 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