Skip to content
Permalink
Browse files
Use native file dialog for save as image under linux
  • Loading branch information
nyalldawson committed Dec 15, 2013
1 parent b192f64 commit 08a10b81803cc613d7ceb7e5c1dceb51b571f677
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/gui/qgisgui.cpp
@@ -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
@@ -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() )

0 comments on commit 08a10b8

Please sign in to comment.