Changeset 13871


Ignore:
Timestamp:
05/24/12 15:19:42 (12 years ago)
Author:
tbretz
Message:
Kepp the file name and create short message in DimControl
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/DimState.h

    r13848 r13871  
    155155    DimControl() : DimState("DIM_CONTROL") { }
    156156
     157    string file;
     158    string shortmsg;
     159
    157160    void AddCallback(const string &script, const callback &cb)
    158161    {
     
    163166    {
    164167        DimState::Handler(evt);
     168
     169        shortmsg = msg;
     170        file     = "";
    165171
    166172        // Evaluate msg
     
    177183        const size_t p3 = p2==string::npos || p2>p1 ? p1-1 : p2;
    178184
    179         const string file = msg.substr(p0+2, p3-p0-2);
     185        file = msg.substr(p0+2, p3-p0-2);
     186
     187        shortmsg.erase(p0, p3-p0);
    180188
    181189        const auto func = fCallbacks.find(file);
Note: See TracChangeset for help on using the changeset viewer.