+ catch all exceptions in load_map_file

This commit is contained in:
Artem Pavlenko 2010-06-18 10:53:49 +00:00
parent 79458691a1
commit e415c6e08e

View file

@ -131,6 +131,7 @@ void MainWindow::open(QString const& path)
if (!filename_.isEmpty())
{
load_map_file(filename_);
setWindowTitle(tr("%1 - Mapnik Viewer").arg(filename_));
}
@ -178,6 +179,10 @@ void MainWindow::load_map_file(QString const& filename)
{
std::cout << ex.what() << "\n";
}
catch (...)
{
std::cerr << "Exception caught in load_map\n";
}
layerTab_->setModel(new LayerListModel(map,this));
styleTab_->setModel(new StyleModel(map,this));
}