diff --git a/cfg.cpp b/cfg.cpp index 02379f2..2857875 100644 --- a/cfg.cpp +++ b/cfg.cpp @@ -292,6 +292,9 @@ void Cfg::fillSessionList(){ string strSessionDir = getOption("sessiondir"); sessions.clear(); + + pair session("","default"); + sessions.push_back(session); if( !strSessionDir.empty() ) { DIR *pDir = opendir(strSessionDir.c_str()); @@ -336,11 +339,6 @@ void Cfg::fillSessionList(){ closedir(pDir); } } - - if (sessions.empty()){ - pair session("",""); - sessions.push_back(session); - } } pair Cfg::nextSession() {