From: Thomas Geymayer Date: Wed, 20 Mar 2013 17:02:11 +0000 (+0100) Subject: Reduce severity of warning for missing gui/dialogs directory X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=60bec150aa0619d7688668c2249c002e3dbaf25c;p=flightgear.git Reduce severity of warning for missing gui/dialogs directory --- diff --git a/src/GUI/new_gui.cxx b/src/GUI/new_gui.cxx index eff8bbe2f..28e463bc6 100644 --- a/src/GUI/new_gui.cxx +++ b/src/GUI/new_gui.cxx @@ -290,9 +290,15 @@ NewGUI::newDialog (SGPropertyNode* props) void NewGUI::readDir (const SGPath& path) { + simgear::Dir dir(path); + if( !dir.exists() ) + { + SG_LOG(SG_INPUT, SG_INFO, "directory does not exist: " << path.str()); + return; + } + flightgear::NavDataCache* cache = flightgear::NavDataCache::instance(); flightgear::NavDataCache::Transaction txn(cache); - simgear::Dir dir(path); simgear::PathList xmls = dir.children(simgear::Dir::TYPE_FILE, ".xml"); BOOST_FOREACH(SGPath xmlPath, xmls) {