Skip to content

Commit 2983ad7

Browse files
committed
fix build on mac (take II)
1 parent 6fb89b1 commit 2983ad7

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/app/qgsoptions.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -738,9 +738,9 @@ void QgsOptions::toggleStandardDeviation( int state )
738738
}
739739
}
740740

741-
#ifdef Q_WS_X11
742741
void QgsOptions::toggleEnableBackbuffer( int state )
743742
{
743+
#ifdef Q_WS_X11
744744
if ( Qt::Checked == state )
745745
{
746746
labelUpdateThreshold->setEnabled( false );
@@ -751,8 +751,10 @@ void QgsOptions::toggleEnableBackbuffer( int state )
751751
labelUpdateThreshold->setEnabled( true );
752752
spinBoxUpdateThreshold->setEnabled( true );
753753
}
754-
}
754+
#else
755+
Q_UNUSED( state );
755756
#endif
757+
}
756758

757759
QString QgsOptions::theme()
758760
{

src/app/qgsoptions.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,9 @@ class QgsOptions : public QDialog, private Ui::QgsOptionsBase
7474

7575
void toggleStandardDeviation( int );
7676

77-
#ifdef Q_WS_X11
7877
//! Slot to change backbuffering. This is handled when the user changes
7978
// the value of the checkbox
8079
void toggleEnableBackbuffer( int );
81-
#endif
8280

8381
/**
8482
* Return the desired state of newly added layers. If a layer

0 commit comments

Comments
 (0)