Skip to content

Commit

Permalink
add missing include for macos
Browse files Browse the repository at this point in the history
  • Loading branch information
Gustry committed Dec 7, 2017
1 parent 1305ccc commit 9ace5e3
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 9ace5e3

Please sign in to comment.