Skip to content

Commit

Permalink
Merge pull request #5822 from Gustry/fix_build_macos
Browse files Browse the repository at this point in the history
add missing include for macos
  • Loading branch information
nyalldawson committed Dec 7, 2017
2 parents 1305ccc + 9ace5e3 commit 5473eba
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/app/layout/qgslayoutdesignerdialog.cpp
Expand Up @@ -58,6 +58,9 @@
#include <QTreeView>
#include <QFileDialog>
#include <QMessageBox>
#ifdef Q_OS_MACX
#include <ApplicationServices/ApplicationServices.h>
#endif

#ifdef ENABLE_MODELTEST
#include "modeltest.h"
Expand Down Expand Up @@ -1260,7 +1263,7 @@ void QgsLayoutDesignerDialog::saveAsTemplate()
QgsSettings settings;
QString lastSaveDir = settings.value( QStringLiteral( "UI/lastComposerTemplateDir" ), QDir::homePath() ).toString();
#ifdef Q_OS_MAC
mQgis->activateWindow();
QgisApp::instance()->activateWindow();
this->raise();
#endif
QString saveFileName = QFileDialog::getSaveFileName(
Expand Down

0 comments on commit 5473eba

Please sign in to comment.