Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7413 for code/trunk/data


Ignore:
Timestamp:
Sep 11, 2010, 5:05:47 PM (14 years ago)
Author:
dafrick
Message:

Removing some TODO comments.
Better handling of duplicate name in Notificationlayer.lua.
Moving StringCompare object from NotificationListener to StringUtils.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/data/gui/scripts/NotificationLayer.lua

    r7403 r7413  
    426426    local window = winMgr:getWindow("orxonox/NotificationLayer/Root/EditMode/ControlWindow/NewQueueName")
    427427    local name = window:getText()
     428
     429    local queue = P.queueList[name]
     430    -- Test if a queue with that name already exists.
     431    if queue ~= nil then
     432        window:setText("Queue with that name already exists.")
     433        return
     434    end
     435
    428436    -- Creates the new queue.
    429437    orxonox.NotificationManager:getInstance():createQueue(name)
    430438
    431     local queue = P.queueList[name]
     439    queue = P.queueList[name]
    432440    if queue == nil then
    433441        return
Note: See TracChangeset for help on using the changeset viewer.