+ catch all exceptions in load_map_file
This commit is contained in:
parent
79458691a1
commit
e415c6e08e
1 changed files with 5 additions and 0 deletions
|
@ -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));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue