Summary: | KMZ file support for tours | ||
---|---|---|---|
Product: | [Applications] marble | Reporter: | Tobias <tobias.jakobs> |
Component: | general | Assignee: | marble-bugs |
Status: | CONFIRMED --- | ||
Severity: | wishlist | CC: | nienhueser |
Priority: | NOR | Keywords: | junior-jobs |
Version: | 2.1 (KDE Applications 16.12) | ||
Target Milestone: | --- | ||
Platform: | Ubuntu | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Tobias
2015-06-21 11:56:48 UTC
Good catch. In the simplest form it should be as easy as this patch: diff --git a/src/lib/marble/TourWidget.cpp b/src/lib/marble/TourWidget.cpp index 90b8c2b..0f281ce 100644 --- a/src/lib/marble/TourWidget.cpp +++ b/src/lib/marble/TourWidget.cpp @@ -367,7 +367,7 @@ void TourWidget::handleSliderMove( int value ) void TourWidgetPrivate::openFile() { if ( overrideModifications() ) { - QString const filename = QFileDialog::getOpenFileName( q, QObject::tr( "Open Tour" ), QDir::homePath(), QObject::tr( "KML Tours (*.kml)" ) ); + QString const filename = QFileDialog::getOpenFileName( q, QObject::tr( "Open Tour" ), QDir::homePath(), QObject::tr( "KML Tours (*.kml *.kmz)" ) ); if ( !filename.isEmpty() ) { ParsingRunnerManager manager( m_widget->model()->pluginManager() ); GeoDataDocument* document = manager.openFile( filename ); However I'd rather have someone test it properly, and fix similar occurences (e.g. importing bookmarks). For a proper support we should insert "*.kmz" as a suggestion in the file dialog only if Marble was compiled with support for kmz really. Looking at the code excerpt above another nice improvement would be to use the last directory used as starting directory for the dialog (instead of the home dir) Still happens with Marble 2.2 for Windows. |