Changeset 10055 for trunk/Mars/mbase


Ignore:
Timestamp:
11/22/10 16:10:36 (14 years ago)
Author:
tbretz
Message:
Display canvas title in status line.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Mars/mbase/MStatusDisplay.cc

    r9598 r10055  
    12051205        return;
    12061206
     1207    const TString name  = c->GetName();
     1208    const TString title = c->GetTitle();
     1209
     1210    if (!title.IsNull() && name != title)
     1211        SetStatusLine1(title);
     1212
    12071213    //
    12081214    // If we are in a multithreaded environment (gThreadXAR) we
     
    23802386
    23812387            // Add the canvas to the list
    2382             c->SetTitle(gFile->GetName());
     2388            const TString name  = c->GetName();
     2389            const TString title = c->GetTitle();
     2390            if (title.IsNull() || name==title)
     2391                c->SetTitle(gFile->GetName());
    23832392            list.Add(c);
    23842393        }
Note: See TracChangeset for help on using the changeset viewer.