diff --git a/qt/bookmark_dialog.cpp b/qt/bookmark_dialog.cpp index 7d0e0203e1..f1296f08b1 100644 --- a/qt/bookmark_dialog.cpp +++ b/qt/bookmark_dialog.cpp @@ -129,13 +129,17 @@ void BookmarkDialog::OnCloseClick() void BookmarkDialog::OnImportClick() { - auto const name = QFileDialog::getOpenFileName(this /* parent */, tr("Open KML/KMZ..."), - QString() /* dir */, "KML/KMZ files (*.kml *.kmz)"); - auto const file = name.toStdString(); - if (file.empty()) - return; + auto const files = QFileDialog::getOpenFileNames(this /* parent */, tr("Open KML/KMZ..."), + QString() /* dir */, "KML/KMZ files (*.kml *.kmz)"); - m_framework.GetBookmarkManager().LoadBookmark(file, false /* isTemporaryFile */); + for (auto const & name : files) + { + auto const file = name.toStdString(); + if (file.empty()) + continue; + + m_framework.GetBookmarkManager().LoadBookmark(file, false /* isTemporaryFile */); + } } void BookmarkDialog::OnExportClick()