Changeset 11330


Ignore:
Timestamp:
07/10/11 22:21:26 (13 years ago)
Author:
tbretz
Message:
Check whether option is available before accessing 'console' option.
File:
1 edited

Legend:

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

    r11263 r11330  
    4747int Main(const Configuration &conf, bool dummy=false)
    4848{
    49     static T shell(conf.GetName().c_str(), conf.Get<int>("console")!=1);
     49    static T shell(conf.GetName().c_str(),
     50                   conf.Has("console") ? conf.Get<int>("console")!=1 : 0);
    5051
    5152    WindowLog &win  = shell.GetStreamIn();
Note: See TracChangeset for help on using the changeset viewer.