Skip to content

Commit

Permalink
Use native file dialog for save as image under linux
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Dec 15, 2013
1 parent b192f64 commit 08a10b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gui/qgisgui.cpp
Expand Up @@ -93,7 +93,7 @@ namespace QgisGui
if ( format == "svg" )
continue;

filterMap.insert( createFileFilter_( format + " format", "*." + format ), format );
filterMap.insert( createFileFilter_( format.toUpper() + " format", "*." + format ), format );
}

#ifdef QGISDEBUG
Expand All @@ -113,7 +113,7 @@ namespace QgisGui
QString selectedFilter = lastUsedFilter;
QString ext;

#if defined(Q_OS_WIN) || defined(Q_OS_MAC)
#if defined(Q_OS_WIN) || defined(Q_OS_MAC) || defined(Q_OS_LINUX)
outputFileName = QFileDialog::getSaveFileName( theParent, theMessage, lastUsedDir, QStringList( filterMap.keys() ).join( ";;" ), &selectedFilter );

if ( !outputFileName.isNull() )
Expand Down

0 comments on commit 08a10b8

Please sign in to comment.