QTfrontend/main.cpp
changeset 1210 bfed1b89bc85
parent 1209 7f6cb1d7be2a
child 1211 94c4f20abdda
equal deleted inserted replaced
1209:7f6cb1d7be2a 1210:bfed1b89bc85
   259 		themesfile.close();
   259 		themesfile.close();
   260 	} else {
   260 	} else {
   261 		QMessageBox::critical(0, "Error", "Cannot access themes.cfg", "OK");
   261 		QMessageBox::critical(0, "Error", "Cannot access themes.cfg", "OK");
   262 	}
   262 	}
   263 
   263 
       
   264 	QDir tmpdir;
       
   265 	tmpdir.cd(datadir->absolutePath());
       
   266 	tmpdir.cd("Maps");
       
   267 	tmpdir.setFilter(QDir::Dirs | QDir::NoDotAndDotDot);
       
   268 	mapList = new QStringList(tmpdir.entryList(QStringList("*")));
       
   269 
   264 	HWForm *Form = new HWForm();
   270 	HWForm *Form = new HWForm();
   265 	Form->show();
   271 	Form->show();
   266 	return app.exec();
   272 	return app.exec();
   267 }
   273 }