Commit a84b5638 authored by Dennis Nienhüser's avatar Dennis Nienhüser
Browse files

Fix adding bookmarks (regression from fa70f0cd)

CCBUG: 309886
parent be3cc14f
......@@ -1717,7 +1717,10 @@ void MarblePart::openEditBookmarkDialog()
dialog->setCoordinates( widget->lookAt().coordinates() );
dialog->setRange( widget->lookAt().range() );
dialog->setMarbleWidget( widget );
dialog->exec();
dialog->setReverseGeocodeName();
if ( dialog->exec() == QDialog::Accepted ) {
widget->model()->bookmarkManager()->addBookmark( dialog->folder(), dialog->bookmark() );
}
delete dialog;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment